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 IClassificationTypeRegistryService

The IClassificationTypeRegistryService type exposes the following members.

  NameDescription
Public methodCreateClassificationTypeInitializes a new instance of a IClassificationType and adds it to the registry.
Public methodCreateTransientClassificationType(IClassificationType[])Creates an IClassificationType that persists only for the duration of this session.
Public methodCreateTransientClassificationType(IEnumerable<IClassificationType>)Creates an IClassificationType that persists only for the duration of this session..
Public methodGetClassificationTypeGets the IClassificationType object identified by the specified type.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft