IClassificationTypeRegistryService Interface

 

The service that maintains the collection of all known classification types.

Namespace:   Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

public interface class IClassificationTypeRegistryService

NameDescription
System_CAPS_pubmethodCreateClassificationType(String^, IEnumerable<IClassificationType^>^)

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

System_CAPS_pubmethodCreateTransientClassificationType(array<IClassificationType^>^)

Creates an IClassificationType that persists only for the duration of this session.

System_CAPS_pubmethodCreateTransientClassificationType(IEnumerable<IClassificationType^>^)

Creates an IClassificationType that persists only for the duration of this session..

System_CAPS_pubmethodGetClassificationType(String^)

Gets the IClassificationType object identified by the specified type.

This is a MEF component part, and should be imported as follows:

[Import] IClassificationTypeRegistryService registry = null;

For more information about classification, see the section "Extending Classification Types and Classification Formats" in Editor Extension Points.

Return to top
Show: