IClassificationTypeRegistryService.GetClassificationType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetClassificationType(String) |
Gets the IClassificationType object identified by the specified |
GetClassificationType(ClassificationLayer, String) |
Gets the IClassificationType object identified by the specified |
GetClassificationType(String)
Gets the IClassificationType object identified by the specified type
.
public:
Microsoft::VisualStudio::Text::Classification::IClassificationType ^ GetClassificationType(System::String ^ type);
public:
Microsoft::VisualStudio::Text::Classification::IClassificationType ^ GetClassificationType(Platform::String ^ type);
Microsoft::VisualStudio::Text::Classification::IClassificationType GetClassificationType(std::wstring const & type);
public Microsoft.VisualStudio.Text.Classification.IClassificationType GetClassificationType (string type);
abstract member GetClassificationType : string -> Microsoft.VisualStudio.Text.Classification.IClassificationType
Public Function GetClassificationType (type As String) As IClassificationType
Parameters
- type
- String
The name of the classification type.
Returns
The classification type, null
if there is no classification type of that name.
Applies to
GetClassificationType(ClassificationLayer, String)
Gets the IClassificationType object identified by the specified type
.
public:
Microsoft::VisualStudio::Text::Classification::ILayeredClassificationType ^ GetClassificationType(Microsoft::VisualStudio::Text::Classification::ClassificationLayer layer, System::String ^ type);
public Microsoft.VisualStudio.Text.Classification.ILayeredClassificationType GetClassificationType (Microsoft.VisualStudio.Text.Classification.ClassificationLayer layer, string type);
abstract member GetClassificationType : Microsoft.VisualStudio.Text.Classification.ClassificationLayer * string -> Microsoft.VisualStudio.Text.Classification.ILayeredClassificationType
Public Function GetClassificationType (layer As ClassificationLayer, type As String) 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.
Returns
The classification type, null
if there is no classification type of that name.