Export (0) Print
Expand All

XPathItem.ValueType Property

When overridden in a derived class, gets the Microsoft .NET Framework version 2.0 type of the item.

Namespace: System.Xml.XPath
Assembly: System.Xml (in system.xml.dll)

public abstract Type ValueType { get; }
/** @property */
public abstract Type get_ValueType ()

public abstract function get ValueType () : Type

Not applicable.

Property Value

The .NET Framework type of the item. The default value is String.

When overridden in a derived class, the ValueType property gets the .NET Framework type of the typed value 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.

Notes to Implementers: All implementers must provide a ValueType property for every item, even if it is only String.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft