mscorlib(4.0.0.0) API with additions
XPathItem.cs
1 using System.Xml.Schema;
2 
3 namespace System.Xml.XPath
4 {
6  public abstract class XPathItem
7  {
11  public abstract bool IsNode
12  {
13  get;
14  }
15 
18  public abstract XmlSchemaType XmlType
19  {
20  get;
21  }
22 
25  public abstract string Value
26  {
27  get;
28  }
29 
32  public abstract object TypedValue
33  {
34  get;
35  }
36 
39  public abstract Type ValueType
40  {
41  get;
42  }
43 
48  public abstract bool ValueAsBoolean
49  {
50  get;
51  }
52 
57  public abstract DateTime ValueAsDateTime
58  {
59  get;
60  }
61 
67  public abstract double ValueAsDouble
68  {
69  get;
70  }
71 
77  public abstract int ValueAsInt
78  {
79  get;
80  }
81 
87  public abstract long ValueAsLong
88  {
89  get;
90  }
91 
98  public virtual object ValueAs(Type returnType)
99  {
100  return ValueAs(returnType, null);
101  }
102 
110  public abstract object ValueAs(Type returnType, IXmlNamespaceResolver nsResolver);
111  }
112 }
The base class for all simple types and complex types.
Definition: XmlSchemaType.cs:7
Definition: __Canon.cs:3
Represents an instant in time, typically expressed as a date and time of day. To browse the ....
Definition: DateTime.cs:13
abstract object TypedValue
When overridden in a derived class, gets the current item as a boxed object of the most appropriate ....
Definition: XPathItem.cs:33
Represents an item in the XQuery 1.0 and XPath 2.0 Data Model.
Definition: XPathItem.cs:6
abstract XmlSchemaType XmlType
When overridden in a derived class, gets the T:System.Xml.Schema.XmlSchemaType for the item.
Definition: XPathItem.cs:19
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
abstract int ValueAsInt
When overridden in a derived class, gets the item's value as an T:System.Int32.
Definition: XPathItem.cs:78
abstract bool ValueAsBoolean
When overridden in a derived class, gets the item's value as a T:System.Boolean.
Definition: XPathItem.cs:49
abstract bool IsNode
When overridden in a derived class, gets a value indicating whether the item represents an XPath node...
Definition: XPathItem.cs:12
abstract double ValueAsDouble
When overridden in a derived class, gets the item's value as a T:System.Double.
Definition: XPathItem.cs:68
abstract DateTime ValueAsDateTime
When overridden in a derived class, gets the item's value as a T:System.DateTime.
Definition: XPathItem.cs:58
abstract long ValueAsLong
When overridden in a derived class, gets the item's value as an T:System.Int64.
Definition: XPathItem.cs:88
Provides read-only access to a set of prefix and namespace mappings.
abstract string Value
When overridden in a derived class, gets the string value of the item.
Definition: XPathItem.cs:26
virtual object ValueAs(Type returnType)
Returns the item's value as the specified type.
Definition: XPathItem.cs:98
Provides the base class for value types.
Definition: ValueType.cs:12