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.

注解

如果 IsMixed 属性设置为 XmlSchemaComplexContent类型 ContentModel 属性 true,则此处返回的值为 MixedIf the IsMixed property is set to true on the ContentModel property that has the type XmlSchemaComplexContent, the value returned here is Mixed. 如果 false``IsMixed 属性,则值为 EmptyElementOnlyIf 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.

适用于