XmlSchemaContentType 枚举

定义

复杂类型的内容模型的枚举。 这表示架构验证后信息集中的内容(infoset)。

public enum class XmlSchemaContentType
public enum XmlSchemaContentType
type XmlSchemaContentType = 
Public Enum XmlSchemaContentType
继承
XmlSchemaContentType

字段

名称 说明
TextOnly 0

仅限文本的内容。

Empty 1

空内容。

ElementOnly 2

仅限元素的内容。

Mixed 3

混合内容。

注解

如果属性IsMixed设置为trueContentModel具有该类型的XmlSchemaComplexContent属性,则此处返回的值。Mixed IsMixed如果该属性为false,则值为或 EmptyElementOnly

如果属性上的 ContentModel 类型具有类型 XmlSchemaSimpleContent,则此值始终 TextOnly为 。

适用于