IClassificationTypeRegistryService::CreateClassificationType Method (String^, IEnumerable<IClassificationType^>^)

 

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)

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.

Exception Condition
InvalidOperationException

type is already in the registry.

Return to top
Show: