다음을 통해 공유


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

‘선언
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.

Return Value

Type: Microsoft.VisualStudio.Text.Classification.IClassificationType
A new IClassificationType.

Exceptions

Exception Condition
InvalidOperationException

type is already in the registry.

.NET Framework Security

See Also

Reference

IClassificationTypeRegistryService Interface

Microsoft.VisualStudio.Text.Classification Namespace