Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Xml.​XPath.​XPathItem

Assembly: System.Xml.ReaderWriter

Inheritance: object → XPathItem

Represents an item in the XQuery 1.0 and XPath 2.0 Data Model.

Properties

public bool
IsNode
When overridden in a derived class, gets a value indicating whether the item represents an XPath node or an atomic value.
public object
TypedValue
When overridden in a derived class, gets the current item as a boxed object of the most appropriate .NET type according to its schema type.
public string
Value
When overridden in a derived class, gets the <see langword="string" /> value of the item.
public bool
ValueAsBoolean
When overridden in a derived class, gets the item's value as a <see cref="T:System.Boolean" /> .
public DateTime
ValueAsDateTime
When overridden in a derived class, gets the item's value as a <see cref="T:System.DateTime" /> .
public double
ValueAsDouble
When overridden in a derived class, gets the item's value as a <see cref="T:System.Double" /> .
public int
ValueAsInt
When overridden in a derived class, gets the item's value as an <see cref="T:System.Int32" /> .
public long
ValueAsLong
When overridden in a derived class, gets the item's value as an <see cref="T:System.Int64" /> .
public Type
ValueType
When overridden in a derived class, gets the .NET type of the item.
XmlType
When overridden in a derived class, gets the <see cref="T:System.Xml.Schema.XmlSchemaType" /> for the item.

Methods

public object
ValueAs​(Type returnType)
Returns the item's value as the specified type.
Returns The value of the item as the type requested.
returnType The type to return the item value as.
public object
ValueAs​(Type returnType, IXmlNamespaceResolver? nsResolver)
When overridden in a derived class, returns the item's value as the type specified using the <see cref="T:System.Xml.IXmlNamespaceResolver" /> object specified to resolve namespace prefixes.
Returns The value of the item as the type requested.
returnType The type to return the item's value as.
nsResolver The <see cref="T:System.Xml.IXmlNamespaceResolver" /> object used to resolve namespace prefixes.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object