XmlSchemaContentType 枚举

定义

复杂类型的内容模型的枚举。 这表示后架构验证信息集 (infoset) 中的内容。This represents the content in the post-schema-validation information set (infoset).

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

字段

ElementOnly 2

纯元素内容。Element-only content.

Empty 1

空内容。Empty content.

Mixed 3

混合内容。Mixed content.

TextOnly 0

纯文本内容。Text-only content.

注解

ContentModel true Mixed如果属性在类型为的属性上设置为,则此处返回的值为。XmlSchemaComplexContent IsMixedIf the IsMixed property is set to true on the ContentModel property that has the type XmlSchemaComplexContent, the value returned here is Mixed. 如果属性为false,则值为ElementOnly或。Empty IsMixedIf the IsMixed property is false, the value is either Empty or ElementOnly.

如果ContentModel属性上的类型具有类型XmlSchemaSimpleContent, 则此值始终TextOnly为。If the type on the ContentModel property has the type XmlSchemaSimpleContent, this value is always TextOnly.

适用于