XmlSchemaComplexType.ContentType 屬性

定義

取得包含編譯後值之複雜類型的內容模型。

public:
 property System::Xml::Schema::XmlSchemaContentType ContentType { System::Xml::Schema::XmlSchemaContentType get(); };
public System.Xml.Schema.XmlSchemaContentType ContentType { get; }
member this.ContentType : System.Xml.Schema.XmlSchemaContentType
Public ReadOnly Property ContentType As XmlSchemaContentType

屬性值

XmlSchemaContentType

複雜類型之內容模型的編譯後值。

備註

這是架構後驗證資訊集中的內容。

IsMixed如果 屬性在具有 類型的 XmlSchemaComplexContent 屬性上 ContentModel 設定為 true ,則傳回的值為 Mixed

IsMixed如果屬性為 false ,則值為 EmptyElementOnly

如果屬性上的 ContentModel 類型具有 類型 XmlSchemaSimpleContent ,則這個值一律 TextOnly 為 。

屬性 ContentType 必須具有下表所示的其中一個值。

例舉 描述
TextOnly 純文字內容。
Empty 空白內容。
ElementOnly 純項目內容。
Mixed 混合內容模型。

適用於