Upraviť

Zdieľať cez


XmlAtomicValue Class

Definition

Represents the typed value of a validated XML element or attribute. The XmlAtomicValue class cannot be inherited.

public ref class XmlAtomicValue sealed : System::Xml::XPath::XPathItem, ICloneable
public sealed class XmlAtomicValue : System.Xml.XPath.XPathItem, ICloneable
type XmlAtomicValue = class
    inherit XPathItem
    interface ICloneable
Public NotInheritable Class XmlAtomicValue
Inherits XPathItem
Implements ICloneable
Inheritance
XmlAtomicValue
Implements

Properties

IsNode

Gets a value indicating whether the validated XML element or attribute is an XPath node or an atomic value.

TypedValue

Gets the current validated XML element or attribute as a boxed object of the most appropriate .NET type according to its schema type.

Value

Gets the string value of the validated XML element or attribute.

ValueAsBoolean

Gets the validated XML element or attribute's value as a Boolean.

ValueAsDateTime

Gets the validated XML element or attribute's value as a DateTime.

ValueAsDouble

Gets the validated XML element or attribute's value as a Double.

ValueAsInt

Gets the validated XML element or attribute's value as an Int32.

ValueAsLong

Gets the validated XML element or attribute's value as an Int64.

ValueType

Gets the .NET type of the validated XML element or attribute.

XmlType

Gets the XmlSchemaType for the validated XML element or attribute.

Methods

Clone()

Returns a copy of this XmlAtomicValue object.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(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()

Gets the string value of the validated XML element or attribute.

ValueAs(Type)

Returns the item's value as the specified type.

(Inherited from XPathItem)
ValueAs(Type, IXmlNamespaceResolver)

Returns the validated XML element or attribute's value as the type specified using the IXmlNamespaceResolver object specified to resolve namespace prefixes.

Explicit Interface Implementations

ICloneable.Clone()

For a description of this member, see Clone().

Applies to