XmlSchemaDatatype::TypeCode Property

 

Gets the XmlTypeCode value for the simple type.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public:
property XmlTypeCode TypeCode {
	virtual XmlTypeCode get();
}

Property Value

Type: System.Xml.Schema::XmlTypeCode

The XmlTypeCode value for the simple type.

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.

System_CAPS_noteNote

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.

For an example of the TypeCode property, see XmlSchemaDatatype.

.NET Framework
Available since 2.0
Return to top
Show: