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.​Schema.​XmlAtomicValue

Assembly: System.Xml.ReaderWriter

Inheritance: object → XPath.​XPathItem → XmlAtomicValue

Implemented Interfaces

Represents the typed value of a validated XML element or attribute. The <see cref="T:System.Xml.Schema.XmlAtomicValue" /> class cannot be inherited.

Properties

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

Methods

Clone​()
Returns a copy of this <see cref="T:System.Xml.Schema.XmlAtomicValue" /> object.
Returns An <see cref="T:System.Xml.Schema.XmlAtomicValue" /> object copy of this <see cref="T:System.Xml.Schema.XmlAtomicValue" /> object.
public string
ToString​()
Gets the <see langword="string" /> value of the validated XML element or attribute.
Returns The <see langword="string" /> value of the validated XML element or attribute.
public object
ValueAs​(Type type, IXmlNamespaceResolver? nsResolver)
Returns the validated XML element or attribute'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 validated XML element or attribute as the type requested.
type The type to return the validated XML element or attribute's value as.
nsResolver The <see cref="T:System.Xml.IXmlNamespaceResolver" /> object used to resolve namespace prefixes.
public object
ValueAs​(Type returnType)
Inherited from XPath.​XPathItem
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 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