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设置为trueContentModel具有该类型的XmlSchemaComplexContent属性,则返回的值为 Mixed。
IsMixed如果该属性为false,则值为或 EmptyElementOnly。
如果属性上的 ContentModel 类型具有类型 XmlSchemaSimpleContent,则此值始终 TextOnly为 。
该 ContentType 属性必须具有下表中显示的值之一。
| Enum | Description |
|---|---|
TextOnly |
仅限文本的内容。 |
Empty |
空内容。 |
ElementOnly |
仅限元素的内容。 |
Mixed |
混合内容模型。 |