XmlSchemaDatatype.TypeCode Property

Definition

Gets the XmlTypeCode value for the simple type.

C#
public virtual System.Xml.Schema.XmlTypeCode TypeCode { get; }

Property Value

The XmlTypeCode value for the simple type.

Examples

For an example of the TypeCode property, see XmlSchemaDatatype.

Remarks

W3C XML Schema list types such as xs:ENTITIES, xs:NMTOKENS and xs:IDREFS are not represented by the XmlTypeCode enumeration. Instead 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.

Note

Both the xs:anySimpleType and xs:anyType types are not represented by XmlTypeCode enumeration. These are represented in an XmlSchemaDatatype object with an XmlTypeCode whose value is UntypedAtomic for xs:anySimpleType or Item for xs:anyType.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also