XmlSchemaComplexType.ContentType 属性     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取复杂类型的内容模型,它保存编译后值。
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
	属性值
复杂类型的内容模型的编译后值。
注解
这是架构验证后信息集中的内容。
如果属性IsMixed设置为true``ContentModel具有类型XmlSchemaComplexContent的属性,则返回的值为 Mixed。
如果属性IsMixed是,则值为或 Empty ElementOnly。false
If the type on the ContentModel property has the type XmlSchemaSimpleContent, then this value is always TextOnly.
该 ContentType 属性必须具有下表中显示的值之一。
| 枚举 | 说明 | 
|---|---|
TextOnly | 
纯文本内容。 | 
Empty | 
空内容。 | 
ElementOnly | 
纯元素内容。 | 
Mixed | 
混合内容模型。 |