XmlSchemaDatatype::ValueType Property

 

When overridden in a derived class, gets the Common Language Runtime (CLR) type of the item.

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

public:
property Type^ ValueType {
	virtual Type^ get() abstract;
}

Property Value

Type: System::Type^

The Common Language Runtime (CLR) type of the item.

The ValueType property gets the CLR type of the item. For example, an element of type xs:int would have a ValueType of Int32 by default. However, the ValueType could be any one of the valid types that can be mapped to xs:int, such as Int16 or Double.

For more information about type support in the System.Xml namespace, see Type Support in the System.Xml Classes.

For an example of the ValueType property, see XmlSchemaDatatype.

.NET Framework
Available since 1.1
Return to top
Show: