Udostępnij za pośrednictwem


ContentTypeDefinition Class

Definition

Defines a content type.

public ref class ContentTypeDefinition sealed
public ref class ContentTypeDefinition sealed
class ContentTypeDefinition sealed
public sealed class ContentTypeDefinition
type ContentTypeDefinition = class
Public NotInheritable Class ContentTypeDefinition
Inheritance
ContentTypeDefinition

Examples

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

   { other components }
}

Remarks

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

Constructors

ContentTypeDefinition()

Initializes a new instance of ContentTypeDefinition.

Applies to