ClassificationTypeDefinition Class

Definition

Describes a data-only export for declaring classification types.

public sealed class ClassificationTypeDefinition
Inheritance
ClassificationTypeDefinition

Examples

internal sealed class Components   
{   
    [Export]   
    [Name("keyword")] //required   
    [BaseDefinition("text")] //zero or more BaseDefinitions are allowed   
    internal ClassificationTypeDefinition keywordDefinition;   
    {   
        ...   
    }  
}  

Remarks

Because you cannot subclass this type, you can use the [Export] attribute with no type.

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

Constructors

ClassificationTypeDefinition()

Initializes a new instance of ClassificationTypeDefinition.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to