ContentType 类

定义

用于反序列化内容类型信息。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
type ContentType = class
    interface ISupportInitialize
    interface IProjectSchemaNode
Public NotInheritable Class ContentType
Implements IProjectSchemaNode, ISupportInitialize
继承
ContentType
属性
实现

构造函数

ContentType()

构造函数Constructor

属性

DefaultContentTypeForItemType

获取或设置一个标志,该标志决定默认的内容类型是否可用。Gets or sets a flag that determines whether default content type is available.

DisplayName

序列化 IContentType.DisplayName。Serializes IContentType.DisplayName.

ItemGroupName

序列化 IContentType.DefaultContentTypeForItemTypeSerializes IContentType.DefaultContentTypeForItemType

ItemType

序列化 IContentType.ItemTypeSerializes IContentType.ItemType

Metadata

序列化内容类型的元数据。Serializes content type's metadata.

Name

序列化 IContentType.Name。Serializes IContentType.Name.

方法

BeginInit()

开始初始化。Begins initialization. 请参见 ISupportInitialize。See ISupportInitialize.

EndInit()

结束初始化。Ends initialization. 请参见 ISupportInitialize。See ISupportInitialize.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetMetadata(String)

获取给定元数据名称的值。Gets the value of the given metadata name.

GetSchemaObjects(Type)

返回针对具有给定类型的静态数据的所有实例的枚举器。Returns an enumerator over all instances of static data that have the given type.

GetSchemaObjectTypes()

返回针对此节点包含的数据驱动功能的静态数据的所有类型的枚举器。Returns an enumerator over all types of static data for the data-driven features that this node contains.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于