Compartilhar via


IClassificationTypeRegistryService.CreateClassificationType Method

Definition

Overloads

CreateClassificationType(String, IEnumerable<IClassificationType>)

Initializes a new instance of a IClassificationType and adds it to the registry.

CreateClassificationType(ClassificationLayer, String, IEnumerable<IClassificationType>)

Initializes a new instance of a IClassificationType and adds it to the registry.

CreateClassificationType(String, IEnumerable<IClassificationType>)

Initializes a new instance of a IClassificationType and adds it to the registry.

public:
 Microsoft::VisualStudio::Text::Classification::IClassificationType ^ CreateClassificationType(System::String ^ type, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Classification::IClassificationType ^> ^ baseTypes);
public Microsoft.VisualStudio.Text.Classification.IClassificationType CreateClassificationType (string type, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Classification.IClassificationType> baseTypes);
abstract member CreateClassificationType : string * seq<Microsoft.VisualStudio.Text.Classification.IClassificationType> -> Microsoft.VisualStudio.Text.Classification.IClassificationType
Public Function CreateClassificationType (type As String, baseTypes As IEnumerable(Of IClassificationType)) As IClassificationType

Parameters

type
String

The name of the classification type to create.

baseTypes
IEnumerable<IClassificationType>

The base types of the classification.

Returns

A new IClassificationType.

Exceptions

type is already in the registry.

Applies to

CreateClassificationType(ClassificationLayer, String, IEnumerable<IClassificationType>)

Initializes a new instance of a IClassificationType and adds it to the registry.

public:
 Microsoft::VisualStudio::Text::Classification::ILayeredClassificationType ^ CreateClassificationType(Microsoft::VisualStudio::Text::Classification::ClassificationLayer layer, System::String ^ type, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Classification::IClassificationType ^> ^ baseTypes);
public Microsoft.VisualStudio.Text.Classification.ILayeredClassificationType CreateClassificationType (Microsoft.VisualStudio.Text.Classification.ClassificationLayer layer, string type, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Classification.IClassificationType> baseTypes);
abstract member CreateClassificationType : Microsoft.VisualStudio.Text.Classification.ClassificationLayer * string * seq<Microsoft.VisualStudio.Text.Classification.IClassificationType> -> Microsoft.VisualStudio.Text.Classification.ILayeredClassificationType
Public Function CreateClassificationType (layer As ClassificationLayer, type As String, baseTypes As IEnumerable(Of IClassificationType)) As ILayeredClassificationType

Parameters

layer
ClassificationLayer

Specifies the layer to which this classification belongs. Layers are specializations of IClassificationTypes that can be used to make all classifications from one source supersede another.

type
String

The name of the classification type to create.

baseTypes
IEnumerable<IClassificationType>

The base types of the classification.

Returns

A new IClassificationType.

Exceptions

type is already in the registry.

Applies to