IClassificationTypeRegistryService.CreateClassificationType Method
Initializes a new instance of a IClassificationType and adds it to the registry.
Namespace: Microsoft.VisualStudio.Text.Classification
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaración
Function CreateClassificationType ( _
type As String, _
baseTypes As IEnumerable(Of IClassificationType) _
) As IClassificationType
IClassificationType CreateClassificationType(
string type,
IEnumerable<IClassificationType> baseTypes
)
IClassificationType^ CreateClassificationType(
String^ type,
IEnumerable<IClassificationType^>^ baseTypes
)
abstract CreateClassificationType :
type:string *
baseTypes:IEnumerable<IClassificationType> -> IClassificationType
function CreateClassificationType(
type : String,
baseTypes : IEnumerable<IClassificationType>
) : IClassificationType
Parameters
- type
Type: System.String
The name of the classification type to create.
- baseTypes
Type: System.Collections.Generic.IEnumerable<IClassificationType>
The base types of the classification.
Return Value
Type: Microsoft.VisualStudio.Text.Classification.IClassificationType
A new IClassificationType.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | type is already in the registry. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.