Freigeben über


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)

Syntax

'Declaration
Public Interface IClassificationTypeRegistryService
public interface IClassificationTypeRegistryService
public interface class IClassificationTypeRegistryService
type IClassificationTypeRegistryService =  interface end
public interface IClassificationTypeRegistryService

The IClassificationTypeRegistryService type exposes the following members.

Methods

  Name Description
Public method CreateClassificationType Initializes a new instance of a IClassificationType and adds it to the registry.
Public method CreateTransientClassificationType(array<IClassificationType[]) Creates an IClassificationType that persists only for the duration of this session.
Public method CreateTransientClassificationType(IEnumerable<IClassificationType>) Creates an IClassificationType that persists only for the duration of this session..
Public method GetClassificationType Gets the IClassificationType object identified by the specified type.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Text.Classification Namespace