This documentation is archived and is not being maintained.
XPathItem Class
Visual Studio 2010
Represents an item in the XQuery 1.0 and XPath 2.0 Data Model.
System::Object
System.Xml.XPath::XPathItem
System.Xml.Schema::XmlAtomicValue
System.Xml.XPath::XPathNavigator
System.Xml.XPath::XPathItem
System.Xml.Schema::XmlAtomicValue
System.Xml.XPath::XPathNavigator
Assembly: System.Xml (in System.Xml.dll)
The XPathItem type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | IsNode | When overridden in a derived class, gets a value indicating whether the item represents an XPath node or an atomic value. |
![]() ![]() | TypedValue | When overridden in a derived class, gets the current item as a boxed object of the most appropriate .NET Framework version 2.0 type according to its schema type. |
![]() ![]() | Value | When overridden in a derived class, gets the string value of the item. |
![]() ![]() | ValueAsBoolean | When overridden in a derived class, gets the item's value as a Boolean. |
![]() ![]() | ValueAsDateTime | When overridden in a derived class, gets the item's value as a DateTime. |
![]() ![]() | ValueAsDouble | When overridden in a derived class, gets the item's value as a Double. |
![]() ![]() | ValueAsInt | When overridden in a derived class, gets the item's value as an Int32. |
![]() ![]() | ValueAsLong | When overridden in a derived class, gets the item's value as an Int64. |
![]() ![]() | ValueType | When overridden in a derived class, gets the .NET Framework version 2.0 type of the item. |
![]() ![]() | XmlType | When overridden in a derived class, gets the XmlSchemaType for the item. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | ValueAs(Type) | Returns the item's value as the specified type. |
![]() ![]() | ValueAs(Type, IXmlNamespaceResolver) | When overridden in a derived class, returns the item's value as the type specified using the IXmlNamespaceResolver object specified to resolve namespace prefixes. |
An item is either a node or an atomic value.
Notes to InheritorsWhen you inherit from the XPathItem class, you must override the following members: IsNode:
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
