Condividi tramite


ContentType Class

Definition

Used to deserialize the content type information

public ref class ContentType sealed : Microsoft::Build::Framework::XamlTypes::IProjectSchemaNode, System::ComponentModel::ISupportInitialize
[System.Windows.Markup.ContentProperty("Metadata")]
public sealed class ContentType : Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode, System.ComponentModel.ISupportInitialize
[<System.Windows.Markup.ContentProperty("Metadata")>]
type ContentType = class
    interface ISupportInitialize
    interface IProjectSchemaNode
Public NotInheritable Class ContentType
Implements IProjectSchemaNode, ISupportInitialize
Inheritance
ContentType
Attributes
Implements

Constructors

ContentType()

Constructor

Properties

DefaultContentTypeForItemType

serializes IContentType.DefaultContentTypeForItemType

DisplayName

serializes IContentType.DisplayName

ItemGroupName
Obsolete.

This property was never used for anything. It should have been removed before we shipped MSBuild 4.0.

ItemType

serializes IContentType.ItemType

Metadata

serializes content type's metadata. Accessible via IContentType.GetMetadata()

Name

serializes IContentType.Name

Methods

BeginInit()

See ISupportInitialize.

EndInit()

See ISupportInitialize.

GetMetadata(String)

Access metadata in convenient way

GetSchemaObjects(Type)

see IProjectSchemaNode

GetSchemaObjectTypes()

see IProjectSchemaNode

Applies to