IClassificationTypeRegistryService::CreateClassificationType Method (String^, IEnumerable<IClassificationType^>^)
Visual Studio 2015
Initializes a new instance of a IClassificationType and adds it to the registry.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
IClassificationType^ CreateClassificationType( String^ type, IEnumerable<IClassificationType^>^ baseTypes )
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.
| Exception | Condition |
|---|---|
| InvalidOperationException | type is already in the registry. |
Show: