ContentTypeDefinition Class
Defines a content type.
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
| Name | Description | |
|---|---|---|
![]() | ContentTypeDefinition() | Initializes a new instance of ContentTypeDefinition. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (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.
Show:
