DelegatingXmlDictionaryReader 类

定义

包装一个指定的阅读器和向该包装后的阅读器委托所有 XmlDictionaryReader 调用的类。A class that wraps a specified reader and delegates all XmlDictionaryReader calls to the wrapped reader.

public ref class DelegatingXmlDictionaryReader : System::Xml::XmlDictionaryReader
public class DelegatingXmlDictionaryReader : System.Xml.XmlDictionaryReader
type DelegatingXmlDictionaryReader = class
    inherit XmlDictionaryReader
Public Class DelegatingXmlDictionaryReader
Inherits XmlDictionaryReader
继承
DelegatingXmlDictionaryReader
派生

注解

可以通过 InnerReader 属性访问已包装的读取器。The reader that is wrapped can be accessed through the InnerReader property. 调用 InitializeInnerReader 方法,设置已包装的读取器并初始化属性。Call the InitializeInnerReader method to set the wrapped reader and initialize the property.

构造函数

DelegatingXmlDictionaryReader()

初始化 DelegatingXmlDictionaryReader 类的新实例。Initializes a new instance of the DelegatingXmlDictionaryReader class.

属性

AttributeCount

从当前阅读器位置开始获取指定个数的特性。Gets the number of attributes at the current reader position.

BaseURI

获取当前节点的基 URI。Gets the base URI of the current node.

CanCanonicalize

此属性始终返回 falseThis property always returns false. 如果派生的类支持规范化,则可以重写这些类以返回 trueIts derived classes can override to return true if they support canonicalization.

(继承自 XmlDictionaryReader)
CanReadBinaryContent

获取一个值,该值指示 XmlReader 是否实现二进制内容读取方法。Gets a value indicating whether the XmlReader implements the binary content read methods.

(继承自 XmlReader)
CanReadValueChunk

获取一个值,该值指示 XmlReader 是否实现 ReadValueChunk(Char[], Int32, Int32) 方法。Gets a value indicating whether the XmlReader implements the ReadValueChunk(Char[], Int32, Int32) method.

(继承自 XmlReader)
CanResolveEntity

获取一个值,该值指示此读取器是否可以分析和解析实体。Gets a value indicating whether this reader can parse and resolve entities.

(继承自 XmlReader)
Depth

获取当前节点的深度。Gets the Depth of the current node.

EOF

获取一个值,该值指示读取器是否定位在流的结尾。Gets a value that indicates whether the reader is positioned at the end of the stream.

HasAttributes

获取一个值,该值指示当前节点是否有任何属性。Gets a value indicating whether the current node has any attributes.

(继承自 XmlReader)
HasValue

获取一个值,该值指示当前节点是否可以具有 ValueGets a value that indicates whether the current node can have a Value.

InnerReader

获取被此实例包装的内部读取器。Gets the inner reader that is wrapped by this instance.

IsDefault

获取一个值,该值指示当前节点是否是从 DTD 或架构中定义的默认值生成的特性。Gets a value that indicates whether the current node is an attribute that was generated from the default value defined in the DTD or Schema.

IsEmptyElement

获取一个值,该值指示当前节点是否是一个空元素。Gets a value that indicates whether the current node is an empty element.

Item[Int32]

获取具有指定索引的属性的值。Gets the value of the attribute with the specified index.

Item[String, String]

获取具有指定的本地名称和命名空间 URI(在由 LocalName 属性和来自换行读取器的 NamespaceURI 属性返回时)。Gets the value of the attribute with the specified local name and namespace URI (as returned by the LocalName property and the NamespaceURI property from the wrapped reader.

Item[String]

获取具有指定的本地名称和命名空间 URI(在由来自换行读取器的 Name 属性返回时)。Gets the value of the attribute with the specified name (as returned by the Name property from the wrapped reader).

LocalName

获取当前节点的本地名称。Gets the local name of the current node.

Name

获取当前节点的限定名称。Gets the qualified name of the current node.

NamespaceURI

获取当前节点的命名空间 URI。Gets the namespace URI of the current node.

NameTable

获取与此实例关联的 XmlNameTableGets the XmlNameTable associated with this instance.

NodeType

获取当前节点的类型。Gets the type of the current node.

Prefix

获取与当前节点关联的命名空间前缀。Gets the namespace prefix associated with the current node.

Quotas

获取适用于此类的当前实例的配额值。Gets the quota values that apply to the current instance of this class.

(继承自 XmlDictionaryReader)
QuoteChar

获取用于括起属性节点的值的引号字符。Gets the quotation mark character used to enclose the value of an attribute node. 或...(" or ').

ReadState

获取读取器的状态。Gets the state of the reader.

SchemaInfo

获取作为架构验证结果分配给当前节点的架构信息。Gets the schema information that has been assigned to the current node as a result of schema validation.

(继承自 XmlReader)
Settings

获取用于创建此 XmlReader 实例的 XmlReaderSettings 对象。Gets the XmlReaderSettings object used to create this XmlReader instance.

(继承自 XmlReader)
Value

获取当前节点的文本值。Gets the text value of the current node.

ValueType

获取当前节点的 Common Language Runtime (CLR) 类型。Gets the Common Language Runtime (CLR) type of the current node.

XmlLang

获取 xml:lang 范围。Gets the xml:lang scope.

XmlSpace

获取当前 xml:space 范围。Gets the current xml:space scope.

方法

Close()

关闭该读取器并更改 ReadState 为已关闭。Closes the reader and changes the ReadState to Closed.

Dispose()

释放 XmlReader 类的当前实例所使用的所有资源。Releases all resources used by the current instance of the XmlReader class.

(继承自 XmlReader)
Dispose(Boolean)

释放由 XmlReader 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.

(继承自 XmlReader)
EndCanonicalization()

此方法尚未实现。This method is not yet implemented.

(继承自 XmlDictionaryReader)
Equals(Object)

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

(继承自 Object)
GetAttribute(Int32)

获取给定索引处的特性的值。Gets the value of the attribute at the given index.

GetAttribute(String)

获取具有给定名称的特性的值。Gets the value of the attribute with the given name.

GetAttribute(String, String)

获取具有给定名称和命名空间 Uri 的属性的值。Gets the value of the attribute with the given name and namespace Uri.

GetAttribute(XmlDictionaryString, XmlDictionaryString)

当在派生类中被重写时,获取属性的值。When overridden in a derived class, gets the value of an attribute.

(继承自 XmlDictionaryReader)
GetHashCode()

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

(继承自 Object)
GetNonAtomizedNames(String, String)

获取非原子化的名称。Gets non-atomized names.

(继承自 XmlDictionaryReader)
GetType()

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

(继承自 Object)
GetValueAsync()

异步获取当前节点的值。Asynchronously gets the value of the current node.

(继承自 XmlReader)
IndexOfLocalName(String[], String)

获取名称数组中当前节点的本地名称的索引。Gets the index of the local name of the current node within an array of names.

(继承自 XmlDictionaryReader)
IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString)

获取名称数组中当前节点的本地名称的索引。Gets the index of the local name of the current node within an array of names.

(继承自 XmlDictionaryReader)
InitializeInnerReader(XmlDictionaryReader)

用指定的内部读取器初始化此实例。Initializes this instance with the specified inner reader.

IsLocalName(String)

检查参数 localName 是否为当前节点的本地名称。Checks whether the parameter, localName, is the local name of the current node.

(继承自 XmlDictionaryReader)
IsLocalName(XmlDictionaryString)

检查参数 localName 是否为当前节点的本地名称。Checks whether the parameter, localName, is the local name of the current node.

(继承自 XmlDictionaryReader)
IsNamespaceUri(String)

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

(继承自 XmlDictionaryReader)
IsNamespaceUri(XmlDictionaryString)

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

(继承自 XmlDictionaryReader)
IsStartArray(Type)

检查读取器是否定位在数组的开头。Checks whether the reader is positioned at the start of an array. 此类返回 false,但具有数组概念的派生类可能返回 trueThis class returns false, but derived classes that have the concept of arrays might return true.

(继承自 XmlDictionaryReader)
IsStartElement()

调用 MoveToContent() 并测试当前内容节点是否是开始标记或空元素标记。Calls MoveToContent() and tests if the current content node is a start tag or empty element tag.

(继承自 XmlReader)
IsStartElement(String)

调用 MoveToContent() 并测试当前内容节点是否是开始标记或空元素标记,以及所找到元素的 Name 属性是否与给定的参数匹配。Calls MoveToContent() and tests if the current content node is a start tag or empty element tag and if the Name property of the element found matches the given argument.

(继承自 XmlReader)
IsStartElement(String, String)

调用 MoveToContent() 并测试当前内容节点是否是开始标记或空元素标记,以及所找到元素的 LocalNameNamespaceURI 属性是否与给定的字符串匹配。Calls MoveToContent() and tests if the current content node is a start tag or empty element tag and if the LocalName and NamespaceURI properties of the element found match the given strings.

(继承自 XmlReader)
IsStartElement(XmlDictionaryString, XmlDictionaryString)

测试第一个标记是开始标记还是空元素标记,以及本地名称和命名空间 URI 是否与当前节点的本地名称和命名空间 URI 相匹配。Tests whether the first tag is a start tag or empty element tag and if the local name and namespace URI match those of the current node.

(继承自 XmlDictionaryReader)
IsTextNode(XmlNodeType)

测试当前节点是否为文本节点。Tests whether the current node is a text node.

(继承自 XmlDictionaryReader)
LookupNamespace(String)

解析当前元素的范围内的命名空间前缀。Resolves a namespace prefix in the current element scope.

MemberwiseClone()

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

(继承自 Object)
MoveToAttribute(Int32)

移动到具有指定索引的属性。Moves to the attribute with the specified index.

MoveToAttribute(String)

移动到具有给定本地名称的特性。Moves to the attribute with the given local name.

MoveToAttribute(String, String)

由指定的 System.Xml.XmlReader.LocalName and System.Xml.XmlReader.NamespaceURI 移动至此特性。Moves to the attribute with the specified System.Xml.XmlReader.LocalName and System.Xml.XmlReader.NamespaceURI.

MoveToContent()

检查当前节点是否是内容(非空白文本、CDATAElementEndElementEntityReferenceEndEntity)节点。Checks whether the current node is a content (non-white space text, CDATA, Element, EndElement, EntityReference, or EndEntity) node. 如果此节点不是内容节点,则读取器向前跳至下一个内容节点或文件结尾。If the node is not a content node, the reader skips ahead to the next content node or end of file. 它跳过以下类型的节点:ProcessingInstructionDocumentTypeCommentWhitespaceSignificantWhitespaceIt skips over nodes of the following type: ProcessingInstruction, DocumentType, Comment, Whitespace, or SignificantWhitespace.

(继承自 XmlReader)
MoveToContentAsync()

异步检查当前节点是否为内容节点。Asynchronously checks whether the current node is a content node. 如果此节点不是内容节点,则读取器向前跳至下一个内容节点或文件结尾。If the node is not a content node, the reader skips ahead to the next content node or end of file.

(继承自 XmlReader)
MoveToElement()

移动至类型元素的节点。Moves to a node of type Element.

MoveToFirstAttribute()

移动到第一个属性。Moves to the first attribute.

MoveToNextAttribute()

移动读取器至下一个特性。Moves the reader to the next attribute.

MoveToStartElement()

测试当前的内容节点是开始元素还是空元素。Tests whether the current content node is a start element or an empty element.

(继承自 XmlDictionaryReader)
MoveToStartElement(String)

测试当前内容节点是开始元素还是空元素,以及元素的 Name 属性是否与给定的参数匹配。Tests whether the current content node is a start element or an empty element and if the Name property of the element matches the given argument.

(继承自 XmlDictionaryReader)
MoveToStartElement(String, String)

测试当前内容节点是开始元素还是空元素,以及元素的 LocalNameNamespaceURI 属性是否与给定的参数匹配。Tests whether the current content node is a start element or an empty element and if the LocalName and NamespaceURI properties of the element matches the given arguments.

(继承自 XmlDictionaryReader)
MoveToStartElement(XmlDictionaryString, XmlDictionaryString)

测试当前内容节点是开始元素还是空元素,以及元素的 LocalNameNamespaceURI 属性是否与给定的参数匹配。Tests whether the current content node is a start element or an empty element and if the LocalName and NamespaceURI properties of the element matches the given argument.

(继承自 XmlDictionaryReader)
Read()

从流中读取下一个节点。Reads the next node from the stream.

ReadArray(String, String, Boolean[], Int32, Int32)

将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, DateTime[], Int32, Int32)

将重复出现的 DateTime 节点读入类型化数组。Reads repeated occurrences of DateTime nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Decimal[], Int32, Int32)

将重复出现的 Decimal 节点读入类型化数组。Reads repeated occurrences of Decimal nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Double[], Int32, Int32)

将重复出现的 Double 节点读入类型化数组。Reads repeated occurrences of Double nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Guid[], Int32, Int32)

将重复出现的 Guid 节点读入类型化数组。Reads repeated occurrences of Guid nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Int16[], Int32, Int32)

将重复出现的 short 整数读入类型化数组。Reads repeated occurrences of short integers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Int32[], Int32, Int32)

将重复出现的整数读入类型化数组。Reads repeated occurrences of integers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Int64[], Int32, Int32)

将重复出现的 long 整数读入类型化数组。Reads repeated occurrences of long integers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, Single[], Int32, Int32)

将重复出现的 float 数读入类型化数组。Reads repeated occurrences of float numbers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(String, String, TimeSpan[], Int32, Int32)

将重复出现的 TimeSpan 节点读入类型化数组。Reads repeated occurrences of TimeSpan nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Boolean[], Int32, Int32)

将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, DateTime[], Int32, Int32)

将重复出现的 DateTime 节点读入类型化数组。Reads repeated occurrences of DateTime nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Decimal[], Int32, Int32)

将重复出现的 Decimal 节点读入类型化数组。Reads repeated occurrences of Decimal nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Double[], Int32, Int32)

将重复出现的 Double 节点类型读入类型化数组。Reads repeated occurrences of Double nodes type into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Guid[], Int32, Int32)

将重复出现的 Guid 节点读入类型化数组。Reads repeated occurrences of Guid nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Int16[], Int32, Int32)

将重复出现的 short 整数读入类型化数组。Reads repeated occurrences of short integers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Int32[], Int32, Int32)

将重复出现的整数读入类型化数组。Reads repeated occurrences of integers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Int64[], Int32, Int32)

将重复出现的 long 整数读入类型化数组。Reads repeated occurrences of long integers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, Single[], Int32, Int32)

将重复出现的 float 数读入类型化数组。Reads repeated occurrences of float numbers into a typed array.

(继承自 XmlDictionaryReader)
ReadArray(XmlDictionaryString, XmlDictionaryString, TimeSpan[], Int32, Int32)

将重复出现的 TimeSpan 节点读入类型化数组。Reads repeated occurrences of TimeSpan nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadAsync()

异步读取该流的下一个节点。Asynchronously reads the next node from the stream.

(继承自 XmlReader)
ReadAttributeValue()

将属性值分析为一个或多个 Text、EntityReference 或 EndEntity 节点。Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.

ReadBooleanArray(String, String)

将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadBooleanArray(XmlDictionaryString, XmlDictionaryString)

将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array.

(继承自 XmlDictionaryReader)
ReadContentAs(Type, IXmlNamespaceResolver)

将节点内容转换为指定类型。Converts a node's content to a specified type.

(继承自 XmlDictionaryReader)
ReadContentAsAsync(Type, IXmlNamespaceResolver)

将内容作为指定类型的对象异步读取。Asynchronously reads the content as an object of the type specified.

(继承自 XmlReader)
ReadContentAsBase64()

读取内容并返回 Base64 解码的二进制字节。Reads the content and returns the Base64 decoded binary bytes.

(继承自 XmlDictionaryReader)
ReadContentAsBase64(Byte[], Int32, Int32)

读取内容并返回 Base64 解码的二进制字节。Reads the content and returns the Base64 decoded binary bytes.

ReadContentAsBase64Async(Byte[], Int32, Int32)

异步读取内容并返回 Base64 解码的二进制字节。Asynchronously reads the content and returns the Base64 decoded binary bytes.

(继承自 XmlReader)
ReadContentAsBinHex()

读取内容并返回 BinHex 解码的二进制字节。Reads the content and returns the BinHex decoded binary bytes.

(继承自 XmlDictionaryReader)
ReadContentAsBinHex(Byte[], Int32, Int32)

读取内容并返回 BinHex 解码的二进制字节。Reads the content and returns the BinHex decoded binary bytes.

ReadContentAsBinHex(Int32)

读取内容并返回 BinHex 解码的二进制字节。Reads the content and returns the BinHex decoded binary bytes.

(继承自 XmlDictionaryReader)
ReadContentAsBinHexAsync(Byte[], Int32, Int32)

异步读取内容并返回 BinHex 解码的二进制字节。Asynchronously reads the content and returns the BinHex decoded binary bytes.

(继承自 XmlReader)
ReadContentAsBoolean()

将当前位置的文本内容作为 Boolean 读取。Reads the text content at the current position as a Boolean.

(继承自 XmlReader)
ReadContentAsChars(Char[], Int32, Int32)

将内容读入 char 数组。Reads the content into a char array.

(继承自 XmlDictionaryReader)
ReadContentAsDateTime()

将当前位置的文本内容作为 DateTime 对象读取。Reads the text content at the current position as a DateTime object.

(继承自 XmlReader)
ReadContentAsDateTimeOffset()

将当前位置的文本内容作为 DateTimeOffset 对象读取。Reads the text content at the current position as a DateTimeOffset object.

(继承自 XmlReader)
ReadContentAsDecimal()

将节点内容转换为 decimalConverts a node's content to decimal.

(继承自 XmlDictionaryReader)
ReadContentAsDouble()

将当前位置的文本内容作为双精度浮点数读取。Reads the text content at the current position as a double-precision floating-point number.

(继承自 XmlReader)
ReadContentAsFloat()

将节点内容转换为 floatConverts a node's content to float.

(继承自 XmlDictionaryReader)
ReadContentAsGuid()

将节点内容转换为 guidConverts a node's content to guid.

(继承自 XmlDictionaryReader)
ReadContentAsInt()

将当前位置的文本内容作为 32 位有符号整数读取。Reads the text content at the current position as a 32-bit signed integer.

(继承自 XmlReader)
ReadContentAsLong()

将当前位置的文本内容作为 64 位有符号整数读取。Reads the text content at the current position as a 64-bit signed integer.

(继承自 XmlReader)
ReadContentAsObject()

将当前位置的文本内容作为 Object 读取。Reads the text content at the current position as an Object.

(继承自 XmlReader)
ReadContentAsObjectAsync()

将当前位置的文本内容作为 Object 对象异步读取。Asynchronously reads the text content at the current position as an Object.

(继承自 XmlReader)
ReadContentAsQualifiedName(String, String)

将节点内容转换为限定名表示形式。Converts a node's content to a qualified name representation.

(继承自 XmlDictionaryReader)
ReadContentAsString()

将节点内容转换为字符串。Converts a node's content to a string.

(继承自 XmlDictionaryReader)
ReadContentAsString(Int32)

将节点内容转换为字符串。Converts a node's content to a string.

(继承自 XmlDictionaryReader)
ReadContentAsString(String[], Int32)

将节点内容转换为字符串。Converts a node's content to a string.

(继承自 XmlDictionaryReader)
ReadContentAsString(XmlDictionaryString[], Int32)

将节点内容转换为字符串。Converts a node's content to a string.

(继承自 XmlDictionaryReader)
ReadContentAsStringAsync()

将当前位置的文本内容作为 String 对象异步读取。Asynchronously reads the text content at the current position as a String object.

(继承自 XmlReader)
ReadContentAsTimeSpan()

将节点内容转换为 TimeSpanConverts a node's content to TimeSpan.

(继承自 XmlDictionaryReader)
ReadContentAsUniqueId()

读取该内容并返回包含的字符串。Reads the content and returns the contained string.

ReadDateTimeArray(String, String)

将节点内容转换为 DateTime 数组。Converts a node's content to a DateTime array.

(继承自 XmlDictionaryReader)
ReadDateTimeArray(XmlDictionaryString, XmlDictionaryString)

将节点内容转换为 DateTime 数组。Converts a node's content to a DateTime array.

(继承自 XmlDictionaryReader)
ReadDecimalArray(String, String)

将节点内容转换为 Decimal 数组。Converts a node's content to a Decimal array.

(继承自 XmlDictionaryReader)
ReadDecimalArray(XmlDictionaryString, XmlDictionaryString)

将节点内容转换为 Decimal 数组。Converts a node's content to a Decimal array.

(继承自 XmlDictionaryReader)
ReadDoubleArray(String, String)

将节点内容转换为 Double 数组。Converts a node's content to a Double array.

(继承自 XmlDictionaryReader)
ReadDoubleArray(XmlDictionaryString, XmlDictionaryString)

将节点内容转换为 Double 数组。Converts a node's content to a Double array.

(继承自 XmlDictionaryReader)
ReadElementContentAs(Type, IXmlNamespaceResolver)

将元素内容作为请求类型读取。Reads the element content as the requested type.

(继承自 XmlReader)
ReadElementContentAs(Type, IXmlNamespaceResolver, String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后将元素内容作为请求类型读取。Checks that the specified local name and namespace URI matches that of the current element, then reads the element content as the requested type.

(继承自 XmlReader)
ReadElementContentAsAsync(Type, IXmlNamespaceResolver)

将元素内容作为请求类型异步读取。Asynchronously reads the element content as the requested type.

(继承自 XmlReader)
ReadElementContentAsBase64()

将节点内容转换为 Base64 字节的数组。Converts a node's content to a array of Base64 bytes.

(继承自 XmlDictionaryReader)
ReadElementContentAsBase64(Byte[], Int32, Int32)

读取元素并对 Base64 内容进行解码。Reads the element and decodes the Base64 content.

(继承自 XmlReader)
ReadElementContentAsBase64Async(Byte[], Int32, Int32)

异步读取元素并对 Base64 内容进行解码。Asynchronously reads the element and decodes the Base64 content.

(继承自 XmlReader)
ReadElementContentAsBinHex()

将节点内容转换为 BinHex 字节的数组。Converts a node's content to an array of BinHex bytes.

(继承自 XmlDictionaryReader)
ReadElementContentAsBinHex(Byte[], Int32, Int32)

读取元素并对 BinHex 内容进行解码。Reads the element and decodes the BinHex content.

(继承自 XmlReader)
ReadElementContentAsBinHexAsync(Byte[], Int32, Int32)

异步读取元素并对 BinHex 内容进行解码。Asynchronously reads the element and decodes the BinHex content.

(继承自 XmlReader)
ReadElementContentAsBoolean()

将元素内容转换为 BooleanConverts an element's content to a Boolean.

(继承自 XmlDictionaryReader)
ReadElementContentAsBoolean(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 Boolean 对象返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a Boolean object.

(继承自 XmlReader)
ReadElementContentAsDateTime()

将元素内容转换为 DateTimeConverts an element's content to a DateTime.

(继承自 XmlDictionaryReader)
ReadElementContentAsDateTime(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 DateTime 对象返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a DateTime object.

(继承自 XmlReader)
ReadElementContentAsDecimal()

将元素内容转换为 DecimalConverts an element's content to a Decimal.

(继承自 XmlDictionaryReader)
ReadElementContentAsDecimal(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 Decimal 对象返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a Decimal object.

(继承自 XmlReader)
ReadElementContentAsDouble()

将元素内容转换为 DoubleConverts an element's content to a Double.

(继承自 XmlDictionaryReader)
ReadElementContentAsDouble(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为双精度浮点数返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a double-precision floating-point number.

(继承自 XmlReader)
ReadElementContentAsFloat()

将元素内容转换为浮点数 (Single)。Converts an element's content to a floating point number (Single).

(继承自 XmlDictionaryReader)
ReadElementContentAsFloat(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为单精度浮点数返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a single-precision floating-point number.

(继承自 XmlReader)
ReadElementContentAsGuid()

将元素内容转换为 GuidConverts an element's content to a Guid.

(继承自 XmlDictionaryReader)
ReadElementContentAsInt()

将元素内容转换为整数 (Int32)。Converts an element's content to an integer (Int32).

(继承自 XmlDictionaryReader)
ReadElementContentAsInt(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 32 位有符号整数返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a 32-bit signed integer.

(继承自 XmlReader)
ReadElementContentAsLong()

将元素内容转换为长整型 (Int64)。Converts an element's content to a long integer (Int64).

(继承自 XmlDictionaryReader)
ReadElementContentAsLong(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 64 位有符号整数返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a 64-bit signed integer.

(继承自 XmlReader)
ReadElementContentAsObject()

读取当前元素并将内容作为 Object 返回。Reads the current element and returns the contents as an Object.

(继承自 XmlReader)
ReadElementContentAsObject(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 Object 返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as an Object.

(继承自 XmlReader)
ReadElementContentAsObjectAsync()

异步读取当前元素并将内容作为 Object 返回。Asynchronously reads the current element and returns the contents as an Object.

(继承自 XmlReader)
ReadElementContentAsString()

将元素内容转换为 StringConverts an element's content to a String.

(继承自 XmlDictionaryReader)
ReadElementContentAsString(String, String)

检查指定的本地名称和命名空间 URI 与当前元素的本地名称和命名空间 URI 是否匹配,然后读取当前元素,并将内容作为 String 对象返回。Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a String object.

(继承自 XmlReader)
ReadElementContentAsStringAsync()

异步读取当前元素并将内容作为 String 对象返回。Asynchronously reads the current element and returns the contents as a String object.

(继承自 XmlReader)
ReadElementContentAsTimeSpan()

将元素内容转换为 TimeSpanConverts an element's content to a TimeSpan.

(继承自 XmlDictionaryReader)
ReadElementContentAsUniqueId()

将元素的内容转换为唯一标识符。Converts an element's content to a unique identifier.

(继承自 XmlDictionaryReader)
ReadElementString()

读取纯文本元素。Reads a text-only element. 但是,建议改用 ReadElementContentAsString() 方法,因为该方法可以更直接地处理此操作。However, we recommend that you use the ReadElementContentAsString() method instead, because it provides a more straightforward way to handle this operation.

(继承自 XmlReader)
ReadElementString(String)

在读取纯文本元素之前,检查所找到元素的 Name 属性是否与给定的字符串匹配。Checks that the Name property of the element found matches the given string before reading a text-only element. 但是,建议改用 ReadElementContentAsString() 方法,因为该方法可以更直接地处理此操作。However, we recommend that you use the ReadElementContentAsString() method instead, because it provides a more straightforward way to handle this operation.

(继承自 XmlReader)
ReadElementString(String, String)

在读取纯文本元素之前,检查所找到元素的 LocalNameNamespaceURI 属性是否与给定的字符串匹配。Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element. 但是,建议改用 ReadElementContentAsString(String, String) 方法,因为该方法可以更直接地处理此操作。However, we recommend that you use the ReadElementContentAsString(String, String) method instead, because it provides a more straightforward way to handle this operation.

(继承自 XmlReader)
ReadEndElement()

检查当前内容节点是否为结束标记并将读取器推进到下一个节点。Checks that the current content node is an end tag and advances the reader to the next node.

(继承自 XmlReader)
ReadFullStartElement()

检查当前节点是否为元素并将读取器推进到下一个节点。Checks whether the current node is an element and advances the reader to the next node.

(继承自 XmlDictionaryReader)
ReadFullStartElement(String)

检查当前节点是否为具有给定 name 的元素,并将读取器推进到下一个节点。Checks whether the current node is an element with the given name and advances the reader to the next node.

(继承自 XmlDictionaryReader)
ReadFullStartElement(String, String)

检查当前节点是否为具有给定 localNamenamespaceUri 的元素,并将读取器推进到下一个节点。Checks whether the current node is an element with the given localName and namespaceUri and advances the reader to the next node.

(继承自 XmlDictionaryReader)
ReadFullStartElement(XmlDictionaryString, XmlDictionaryString)

检查当前节点是否为具有给定 localNamenamespaceUri 的元素,并将读取器推进到下一个节点。Checks whether the current node is an element with the given localName and namespaceUri and advances the reader to the next node.

(继承自 XmlDictionaryReader)
ReadGuidArray(String, String)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 Guid 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of Guid.

(继承自 XmlDictionaryReader)
ReadGuidArray(XmlDictionaryString, XmlDictionaryString)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 Guid 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of Guid.

(继承自 XmlDictionaryReader)
ReadInnerXml()

当在派生类中被重写时,将所有内容(包括标记)当做字符串读取。When overridden in a derived class, reads all the content, including markup, as a string.

(继承自 XmlReader)
ReadInnerXmlAsync()

异步读取所有内容,包括作为字符串的标记。Asynchronously reads all the content, including markup, as a string.

(继承自 XmlReader)
ReadInt16Array(String, String)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 short 整数 (Int16) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of short integers (Int16).

(继承自 XmlDictionaryReader)
ReadInt16Array(XmlDictionaryString, XmlDictionaryString)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 short 整数 (Int16) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of short integers (Int16).

(继承自 XmlDictionaryReader)
ReadInt32Array(String, String)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入整数 (Int32) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of integers (Int32).

(继承自 XmlDictionaryReader)
ReadInt32Array(XmlDictionaryString, XmlDictionaryString)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入整数 (Int32) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of integers (Int32).

(继承自 XmlDictionaryReader)
ReadInt64Array(String, String)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 long 整数 (Int64) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of long integers (Int64).

(继承自 XmlDictionaryReader)
ReadInt64Array(XmlDictionaryString, XmlDictionaryString)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 long 整数 (Int64) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of long integers (Int64).

(继承自 XmlDictionaryReader)
ReadOuterXml()

当在派生类中被重写时,读取表示该节点和所有它的子级的内容(包括标记)。When overridden in a derived class, reads the content, including markup, representing this node and all its children.

(继承自 XmlReader)
ReadOuterXmlAsync()

异步读取包含该节点和所有它的子级的内容(包括标记)。Asynchronously reads the content, including markup, representing this node and all its children.

(继承自 XmlReader)
ReadSingleArray(String, String)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 float 数 (Single) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of float numbers (Single).

(继承自 XmlDictionaryReader)
ReadSingleArray(XmlDictionaryString, XmlDictionaryString)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 float 数 (Single) 的数组。Reads the contents of a series of nodes with the given localName and namespaceUri into an array of float numbers (Single).

(继承自 XmlDictionaryReader)
ReadStartElement()

检查当前节点是否为元素并将读取器推进到下一个节点。Checks that the current node is an element and advances the reader to the next node.

(继承自 XmlReader)
ReadStartElement(String)

检查当前内容节点是否为具有给定 Name 的元素并将读取器推进到下一个节点。Checks that the current content node is an element with the given Name and advances the reader to the next node.

(继承自 XmlReader)
ReadStartElement(String, String)

检查当前内容节点是否为具有给定 LocalNameNamespaceURI 的元素并将读取器推进到下一个节点。Checks that the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node.

(继承自 XmlReader)
ReadStartElement(XmlDictionaryString, XmlDictionaryString)

检查当前节点是否为具有给定 localNamenamespaceUri 的元素,并将读取器推进到下一个节点。Checks whether the current node is an element with the given localName and namespaceUri and advances the reader to the next node.

(继承自 XmlDictionaryReader)
ReadString()

将当前节点的内容读入字符串。Reads the contents of the current node into a string.

(继承自 XmlDictionaryReader)
ReadString(Int32)

将当前节点的内容读入具有最大给定长度的字符串。Reads the contents of the current node into a string with a given maximum length.

(继承自 XmlDictionaryReader)
ReadSubtree()

返回新的 XmlReader 实例,此实例可用于读取当前节点及其所有子节点。Returns a new XmlReader instance that can be used to read the current node, and all its descendants.

(继承自 XmlReader)
ReadTimeSpanArray(String, String)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 TimeSpan 数组。Reads the contents of a series of nodes with the given localName and namespaceUri into a TimeSpan array.

(继承自 XmlDictionaryReader)
ReadTimeSpanArray(XmlDictionaryString, XmlDictionaryString)

将具有给定 localNamenamespaceUri 的一系列节点的内容读入 TimeSpan 数组。Reads the contents of a series of nodes with the given localName and namespaceUri into a TimeSpan array.

(继承自 XmlDictionaryReader)
ReadToDescendant(String)

XmlReader 前进到下一个具有指定限定名的子代元素。Advances the XmlReader to the next descendant element with the specified qualified name.

(继承自 XmlReader)
ReadToDescendant(String, String)

XmlReader 前进到下一个具有指定的本地名称和命名空间 URI 的子代元素。Advances the XmlReader to the next descendant element with the specified local name and namespace URI.

(继承自 XmlReader)
ReadToFollowing(String)

一直读取,直到找到具有指定限定名的元素。Reads until an element with the specified qualified name is found.

(继承自 XmlReader)
ReadToFollowing(String, String)

一直读取,直到找到具有指定的本地名称和命名空间 URI 的元素。Reads until an element with the specified local name and namespace URI is found.

(继承自 XmlReader)
ReadToNextSibling(String)

XmlReader 前进到下一个具有指定限定名的同级元素。Advances the XmlReader to the next sibling element with the specified qualified name.

(继承自 XmlReader)
ReadToNextSibling(String, String)

XmlReader 推进到具有指定的本地名称和命名空间 URI 的下一个同级元素。Advances the XmlReader to the next sibling element with the specified local name and namespace URI.

(继承自 XmlReader)
ReadValueAsBase64(Byte[], Int32, Int32)

未实现。Not implemented.

(继承自 XmlDictionaryReader)
ReadValueChunk(Char[], Int32, Int32)

读取嵌入在 XML 文档中的大量文本流。Reads large streams of text embedded in an XML document.

ReadValueChunkAsync(Char[], Int32, Int32)

异步读取嵌入在 XML 文档中的大量文本流。Asynchronously reads large streams of text embedded in an XML document.

(继承自 XmlReader)
ResolveEntity()

解析 EntityReference 节点的实体引用。Resolves the entity reference for EntityReference nodes.

Skip()

跳过当前节点的子级。Skips the children of the current node.

(继承自 XmlReader)
SkipAsync()

异步跳过当前节点的子级。Asynchronously skips the children of the current node.

(继承自 XmlReader)
StartCanonicalization(Stream, Boolean, String[])

此方法尚未实现。This method is not yet implemented.

(继承自 XmlDictionaryReader)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
TryGetArrayLength(Int32)

不在此类中实现(它始终返回 false)。Not implemented in this class (it always returns false). 可在派生类中重写。May be overridden in derived classes.

(继承自 XmlDictionaryReader)
TryGetBase64ContentLength(Int32)

不在此类中实现(它始终返回 false)。Not implemented in this class (it always returns false). 可在派生类中重写。May be overridden in derived classes.

(继承自 XmlDictionaryReader)
TryGetLocalNameAsDictionaryString(XmlDictionaryString)

不在此类中实现(它始终返回 false)。Not implemented in this class (it always returns false). 可在派生类中重写。May be overridden in derived classes.

(继承自 XmlDictionaryReader)
TryGetNamespaceUriAsDictionaryString(XmlDictionaryString)

不在此类中实现(它始终返回 false)。Not implemented in this class (it always returns false). 可在派生类中重写。May be overridden in derived classes.

(继承自 XmlDictionaryReader)
TryGetValueAsDictionaryString(XmlDictionaryString)

不在此类中实现(它始终返回 false)。Not implemented in this class (it always returns false). 可在派生类中重写。May be overridden in derived classes.

(继承自 XmlDictionaryReader)

显式界面实现

IDisposable.Dispose()

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

(继承自 XmlReader)

适用于