XmlSchemaDatatype.TypeCode 属性

定义

获取简单类型的 XmlTypeCode 值。Gets the XmlTypeCode value for the simple type.

public:
 virtual property System::Xml::Schema::XmlTypeCode TypeCode { System::Xml::Schema::XmlTypeCode get(); };
public virtual System.Xml.Schema.XmlTypeCode TypeCode { get; }
member this.TypeCode : System.Xml.Schema.XmlTypeCode
Public Overridable ReadOnly Property TypeCode As XmlTypeCode

属性值

简单类型的 XmlTypeCode 值。The XmlTypeCode value for the simple type.

示例

有关 TypeCode 属性的示例,请参阅 XmlSchemaDatatypeFor an example of the TypeCode property, see XmlSchemaDatatype.

注解

W3C XML 架构列表类型(如 xs:实体、xs: NMTOKENS 和 xs: IDREFS)不由 XmlTypeCode 枚举表示。W3C XML Schema list types such as xs:ENTITIES, xs:NMTOKENS and xs:IDREFS are not represented by the XmlTypeCode enumeration. 相反,它们由 xs: ENTITY、xs: NMTOKEN 和 xs: IDREF 类型的 XmlTypeCode 值表示,其 XmlSchemaDatatype 对象的 Variety 属性设置为 ListInstead they are represented by the XmlTypeCode values for the xs:ENTITY, xs:NMTOKEN and xs:IDREF types with the Variety property of the XmlSchemaDatatype object set to List.

备注

Xs: anySimpleType 和 xs: anyType 类型不 XmlTypeCode 枚举来表示。Both the xs:anySimpleType and xs:anyType types are not represented by XmlTypeCode enumeration. 它们在 XmlSchemaDatatype 对象中表示 XmlTypeCode,其值为 xs: anySimpleType 或 xs: anyType 的 Item 的值 UntypedAtomicThese are represented in an XmlSchemaDatatype object with an XmlTypeCode whose value is UntypedAtomic for xs:anySimpleType or Item for xs:anyType.

适用于

另请参阅