ContentTypeDefinition Class

 

Defines a content type.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

System.Object
  Microsoft.VisualStudio.Utilities.ContentTypeDefinition

public sealed class ContentTypeDefinition

NameDescription
System_CAPS_pubmethodContentTypeDefinition()

Initializes a new instance of ContentTypeDefinition.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

internal sealed class Components
{
    [Export]
    [Name("Example")]            // required
    [BaseDefinition("text")]     // zero or more BaseDefinitions are allowed
    internal ContentTypeDefinition exampleDefinition;

    { other components }
}

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: