XmlAtomicValue 类

定义

表示经验证的 XML 元素或特性的类型化值。Represents the typed value of a validated XML element or attribute. 不能继承 XmlAtomicValue 类。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
继承
XmlAtomicValue
实现

属性

IsNode

获取一个值,指示经验证的 XML 元素或特性是一个 XPath 节点还是一个原子值。Gets a value indicating whether the validated XML element or attribute is an XPath node or an atomic value.

TypedValue

根据架构类型,以最适合的 Microsoft .NET Framework 类型的已装箱对象的形式获取当前经验证的 XML 元素或特性。Gets the current validated XML element or attribute as a boxed object of the most appropriate Microsoft .NET Framework type according to its schema type.

Value

获取经验证的 XML 元素或特性的 string 值。Gets the string value of the validated XML element or attribute.

ValueAsBoolean

获取经验证的 XML 元素或特性的 Boolean 形式的值。Gets the validated XML element or attribute's value as a Boolean.

ValueAsDateTime

获取经验证的 XML 元素或特性的 DateTime 形式的值。Gets the validated XML element or attribute's value as a DateTime.

ValueAsDouble

获取经验证的 XML 元素或特性的 Double 形式的值。Gets the validated XML element or attribute's value as a Double.

ValueAsInt

获取经验证的 XML 元素或特性的 Int32 形式的值。Gets the validated XML element or attribute's value as an Int32.

ValueAsLong

获取经验证的 XML 元素或特性的 Int64 形式的值。Gets the validated XML element or attribute's value as an Int64.

ValueType

获取经验证的 XML 元素或特性的 Microsoft .NET Framework 类型。Gets the Microsoft .NET Framework type of the validated XML element or attribute.

XmlType

获取经验证的 XML 元素或特性的 XmlSchemaTypeGets the XmlSchemaType for the validated XML element or attribute.

方法

Clone()

返回此 XmlAtomicValue 对象的一个副本。Returns a copy of this XmlAtomicValue object.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

获取经验证的 XML 元素或特性的 string 值。Gets the string value of the validated XML element or attribute.

ValueAs(Type)

按照指定的类型返回该项的值。Returns the item's value as the specified type.

(继承自 XPathItem)
ValueAs(Type, IXmlNamespaceResolver)

将经验证的 XML 元素或特性值按指定类型返回,并使用指定的 IXmlNamespaceResolver 对象解析命名空间前缀。Returns the validated XML element or attribute's value as the type specified using the IXmlNamespaceResolver object specified to resolve namespace prefixes.

显式接口实现

ICloneable.Clone()

有关此成员的说明,请参阅 Clone()For a description of this member, see Clone().

适用于