XmlDictionaryReader 类
定义
public ref class XmlDictionaryReader abstract : System::Xml::XmlReader
public abstract class XmlDictionaryReader : System.Xml.XmlReader
type XmlDictionaryReader = class
inherit XmlReader
Public MustInherit Class XmlDictionaryReader
Inherits XmlReader
- 继承
- 派生
注解
此类中的方法读取 XmlDictionary 对象。Methods in this class read XmlDictionary objects.
此类是从 XmlReader 派生的。This class is derived from XmlReader.
请注意,对于 CDATA 部分中换行符的标准化,可能会遇到某个已知问题。Note that there is a known issue with the normalization of linefeed characters inside of CDATA sections that you may encounter.
构造函数
XmlDictionaryReader() |
创建此类的实例。Creates an instance of this class. 仅由其派生类调用。Invoked only by its derived classes. |
属性
AttributeCount |
当在派生类中被重写时,获取当前节点上的属性数。When overridden in a derived class, gets the number of attributes on the current node. (继承自 XmlReader) |
BaseURI |
当在派生类中被重写时,获取当前节点的基 URI。When overridden in a derived class, gets the base URI of the current node. (继承自 XmlReader) |
CanCanonicalize |
此属性始终返回 |
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 |
当在派生类中被重写时,获取 XML 文档中当前节点的深度。When overridden in a derived class, gets the depth of the current node in the XML document. (继承自 XmlReader) |
EOF |
当在派生类中被重写时,获取一个值,该值指示此读取器是否定位在流的结尾。When overridden in a derived class, gets a value indicating whether the reader is positioned at the end of the stream. (继承自 XmlReader) |
HasAttributes |
获取一个值,该值指示当前节点是否有任何属性。Gets a value indicating whether the current node has any attributes. (继承自 XmlReader) |
HasValue |
当在派生类中被重写时,获取一个值,该值指示当前节点是否可以具有 Value。When overridden in a derived class, gets a value indicating whether the current node can have a Value. (继承自 XmlReader) |
IsDefault |
当在派生类中被重写时,获取一个值,该值指示当前节点是否是从 DTD 或架构中定义的默认值生成的特性。When overridden in a derived class, gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema. (继承自 XmlReader) |
IsEmptyElement |
当在派生类中被重写时,获取一个值,该值指示当前节点是否为空元素(例如 |
Item[Int32] |
当在派生类中被重写时,获取具有指定索引的属性的值。When overridden in a derived class, gets the value of the attribute with the specified index. (继承自 XmlReader) |
Item[String, String] |
当在派生类中被重写时,获取具有指定 LocalName 和 NamespaceURI 的属性的值。When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI. (继承自 XmlReader) |
Item[String] |
当在派生类中被重写时,获取具有指定 Name 的属性的值。When overridden in a derived class, gets the value of the attribute with the specified Name. (继承自 XmlReader) |
LocalName |
当在派生类中被重写时,获取当前节点的本地名称。When overridden in a derived class, gets the local name of the current node. (继承自 XmlReader) |
Name |
当在派生类中被重写时,获取当前节点的限定名。When overridden in a derived class, gets the qualified name of the current node. (继承自 XmlReader) |
NamespaceURI |
当在派生类中被重写时,获取读取器定位在其上的节点的命名空间 URI(采用 W3C 命名空间规范中定义的形式)。When overridden in a derived class, gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned. (继承自 XmlReader) |
NameTable |
当在派生类中被重写时,获取与该实现关联的 XmlNameTable。When overridden in a derived class, gets the XmlNameTable associated with this implementation. (继承自 XmlReader) |
NodeType |
当在派生类中被重写时,获取当前节点的类型。When overridden in a derived class, gets the type of the current node. (继承自 XmlReader) |
Prefix |
当在派生类中被重写时,获取与当前节点关联的命名空间前缀。When overridden in a derived class, gets the namespace prefix associated with the current node. (继承自 XmlReader) |
Quotas |
获取适用于此类的当前实例的配额值。Gets the quota values that apply to the current instance of this class. |
QuoteChar |
当在派生类中被重写时,获取用于括住特性节点值的引号字符。When overridden in a derived class, gets the quotation mark character used to enclose the value of an attribute node. (继承自 XmlReader) |
ReadState |
当在派生类中被重写时,获取读取器的状态。When overridden in a derived class, gets the state of the reader. (继承自 XmlReader) |
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 |
当在派生类中被重写时,获取当前节点的文本值。When overridden in a derived class, gets the text value of the current node. (继承自 XmlReader) |
ValueType |
获取当前节点的公共语言运行时 (CLR) 类型。Gets The Common Language Runtime (CLR) type for the current node. (继承自 XmlReader) |
XmlLang |
当在派生类中被重写时,获取当前的 |
XmlSpace |
当在派生类中被重写时,获取当前的 |
方法
Close() |
当在派生类中被重写时,将 ReadState 更改为 Closed。When overridden in a derived class, changes the ReadState to Closed. (继承自 XmlReader) |
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Byte[], XmlDictionaryReaderQuotas) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Stream, IXmlDictionary, XmlDictionaryReaderQuotas) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Stream, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Stream, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateBinaryReader(Stream, XmlDictionaryReaderQuotas) |
创建可读取 .NET 二进制 XML 格式的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format. |
CreateDictionaryReader(XmlReader) |
从现有的 XmlDictionaryReader 创建 XmlReader 的实例。Creates an instance of XmlDictionaryReader from an existing XmlReader. |
CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas) |
创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format. |
CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) |
创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader. |
CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) |
创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader. |
CreateTextReader(Byte[], XmlDictionaryReaderQuotas) |
创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader. |
CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) |
创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader. |
CreateTextReader(Stream, XmlDictionaryReaderQuotas) |
创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader. |
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. |
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetAttribute(Int32) |
当在派生类中被重写时,获取具有指定索引的属性的值。When overridden in a derived class, gets the value of the attribute with the specified index. (继承自 XmlReader) |
GetAttribute(String) |
当在派生类中被重写时,获取具有指定 Name 的属性的值。When overridden in a derived class, gets the value of the attribute with the specified Name. (继承自 XmlReader) |
GetAttribute(String, String) |
当在派生类中被重写时,获取具有指定 LocalName 和 NamespaceURI 的属性的值。When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI. (继承自 XmlReader) |
GetAttribute(XmlDictionaryString, XmlDictionaryString) |
当在派生类中被重写时,获取属性的值。When overridden in a derived class, gets the value of an attribute. |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetNonAtomizedNames(String, String) |
获取非原子化的名称。Gets non-atomized names. |
GetType() |
获取当前实例的 Type。Gets 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. |
IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) |
获取名称数组中当前节点的本地名称的索引。Gets the index of the local name of the current node within an array of names. |
IsLocalName(String) |
检查参数 |
IsLocalName(XmlDictionaryString) |
检查参数 |
IsNamespaceUri(String) |
检查参数 |
IsNamespaceUri(XmlDictionaryString) |
检查参数 |
IsStartArray(Type) |
检查读取器是否定位在数组的开头。Checks whether the reader is positioned at the start of an array. 此类返回 |
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() 并测试当前内容节点是否是开始标记或空元素标记,以及所找到元素的 LocalName 和 NamespaceURI 属性是否与给定的字符串匹配。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. |
IsTextNode(XmlNodeType) |
测试当前节点是否为文本节点。Tests whether the current node is a text node. |
LookupNamespace(String) |
当在派生类中被重写时,在当前元素的范围内解析命名空间前缀。When overridden in a derived class, resolves a namespace prefix in the current element's scope. (继承自 XmlReader) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
MoveToAttribute(Int32) |
当在派生类中被重写时,移动到具有指定索引的属性。When overridden in a derived class, moves to the attribute with the specified index. (继承自 XmlReader) |
MoveToAttribute(String) |
当在派生类中被重写时,移动到具有指定 Name 的属性。When overridden in a derived class, moves to the attribute with the specified Name. (继承自 XmlReader) |
MoveToAttribute(String, String) |
当在派生类中被重写时,移动到具有指定的 LocalName 和 NamespaceURI 的属性。When overridden in a derived class, moves to the attribute with the specified LocalName and NamespaceURI. (继承自 XmlReader) |
MoveToContent() |
检查当前节点是否是内容(非空白文本、 |
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() |
当在派生类中被重写时,移动到包含当前属性节点的元素。When overridden in a derived class, moves to the element that contains the current attribute node. (继承自 XmlReader) |
MoveToFirstAttribute() |
当在派生类中被重写时,移动到第一个属性。When overridden in a derived class, moves to the first attribute. (继承自 XmlReader) |
MoveToNextAttribute() |
当在派生类中被重写时,移动到下一个属性。When overridden in a derived class, moves to the next attribute. (继承自 XmlReader) |
MoveToStartElement() |
测试当前的内容节点是开始元素还是空元素。Tests whether the current content node is a start element or an empty element. |
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. |
MoveToStartElement(String, String) |
测试当前内容节点是开始元素还是空元素,以及元素的 LocalName 和 NamespaceURI 属性是否与给定的参数匹配。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. |
MoveToStartElement(XmlDictionaryString, XmlDictionaryString) |
测试当前内容节点是开始元素还是空元素,以及元素的 LocalName 和 NamespaceURI 属性是否与给定的参数匹配。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. |
Read() |
当在派生类中被重写时,从流中读取下一个节点。When overridden in a derived class, reads the next node from the stream. (继承自 XmlReader) |
ReadArray(String, String, Boolean[], Int32, Int32) |
将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array. |
ReadArray(String, String, DateTime[], Int32, Int32) |
将重复出现的 DateTime 节点读入类型化数组。Reads repeated occurrences of DateTime nodes into a typed array. |
ReadArray(String, String, Decimal[], Int32, Int32) |
将重复出现的 Decimal 节点读入类型化数组。Reads repeated occurrences of Decimal nodes into a typed array. |
ReadArray(String, String, Double[], Int32, Int32) |
将重复出现的 Double 节点读入类型化数组。Reads repeated occurrences of Double nodes into a typed array. |
ReadArray(String, String, Guid[], Int32, Int32) |
将重复出现的 Guid 节点读入类型化数组。Reads repeated occurrences of Guid nodes into a typed array. |
ReadArray(String, String, Int16[], Int32, Int32) |
将重复出现的 |
ReadArray(String, String, Int32[], Int32, Int32) |
将重复出现的整数读入类型化数组。Reads repeated occurrences of integers into a typed array. |
ReadArray(String, String, Int64[], Int32, Int32) |
将重复出现的 |
ReadArray(String, String, Single[], Int32, Int32) |
将重复出现的 |
ReadArray(String, String, TimeSpan[], Int32, Int32) |
将重复出现的 TimeSpan 节点读入类型化数组。Reads repeated occurrences of TimeSpan nodes into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, Boolean[], Int32, Int32) |
将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, DateTime[], Int32, Int32) |
将重复出现的 DateTime 节点读入类型化数组。Reads repeated occurrences of DateTime nodes into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, Decimal[], Int32, Int32) |
将重复出现的 Decimal 节点读入类型化数组。Reads repeated occurrences of Decimal nodes into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, Double[], Int32, Int32) |
将重复出现的 Double 节点类型读入类型化数组。Reads repeated occurrences of Double nodes type into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, Guid[], Int32, Int32) |
将重复出现的 Guid 节点读入类型化数组。Reads repeated occurrences of Guid nodes into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, Int16[], Int32, Int32) |
将重复出现的 |
ReadArray(XmlDictionaryString, XmlDictionaryString, Int32[], Int32, Int32) |
将重复出现的整数读入类型化数组。Reads repeated occurrences of integers into a typed array. |
ReadArray(XmlDictionaryString, XmlDictionaryString, Int64[], Int32, Int32) |
将重复出现的 |
ReadArray(XmlDictionaryString, XmlDictionaryString, Single[], Int32, Int32) |
将重复出现的 |
ReadArray(XmlDictionaryString, XmlDictionaryString, TimeSpan[], Int32, Int32) |
将重复出现的 TimeSpan 节点读入类型化数组。Reads repeated occurrences of TimeSpan nodes into a typed array. |
ReadAsync() |
异步读取该流的下一个节点。Asynchronously reads the next node from the stream. (继承自 XmlReader) |
ReadAttributeValue() |
当在派生类中被重写时,将属性值解析为一个或多个 |
ReadBooleanArray(String, String) |
将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array. |
ReadBooleanArray(XmlDictionaryString, XmlDictionaryString) |
将重复出现的 Boolean 节点读入类型化数组。Reads repeated occurrences of Boolean nodes into a typed array. |
ReadContentAs(Type, IXmlNamespaceResolver) |
将节点内容转换为指定类型。Converts a node's content to a specified type. |
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. |
ReadContentAsBase64(Byte[], Int32, Int32) |
读取内容并返回 Base64 解码的二进制字节。Reads the content and returns the Base64 decoded binary bytes. (继承自 XmlReader) |
ReadContentAsBase64Async(Byte[], Int32, Int32) |
异步读取内容并返回 Base64 解码的二进制字节。Asynchronously reads the content and returns the Base64 decoded binary bytes. (继承自 XmlReader) |
ReadContentAsBinHex() |
读取内容并返回 |
ReadContentAsBinHex(Byte[], Int32, Int32) |
读取内容并返回 |
ReadContentAsBinHex(Int32) |
读取内容并返回 |
ReadContentAsBinHexAsync(Byte[], Int32, Int32) |
异步读取内容并返回 |
ReadContentAsBoolean() |
将当前位置的文本内容作为 |
ReadContentAsChars(Char[], Int32, Int32) |
将内容读入 |
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() |
将节点内容转换为 |
ReadContentAsDouble() |
将当前位置的文本内容作为双精度浮点数读取。Reads the text content at the current position as a double-precision floating-point number. (继承自 XmlReader) |
ReadContentAsFloat() |
将节点内容转换为 |
ReadContentAsGuid() |
将节点内容转换为 |
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. |
ReadContentAsString() |
将节点内容转换为字符串。Converts a node's content to a string. |
ReadContentAsString(Int32) |
将节点内容转换为字符串。Converts a node's content to a string. |
ReadContentAsString(String[], Int32) |
将节点内容转换为字符串。Converts a node's content to a string. |
ReadContentAsString(XmlDictionaryString[], Int32) |
将节点内容转换为字符串。Converts a node's content to a string. |
ReadContentAsStringAsync() |
将当前位置的文本内容作为 String 对象异步读取。Asynchronously reads the text content at the current position as a String object. (继承自 XmlReader) |
ReadContentAsTimeSpan() | |
ReadContentAsUniqueId() |
将节点内容转换为唯一标识符。Converts a node's content to a unique identifier. |
ReadDateTimeArray(String, String) |
将节点内容转换为 DateTime 数组。Converts a node's content to a DateTime array. |
ReadDateTimeArray(XmlDictionaryString, XmlDictionaryString) |
将节点内容转换为 DateTime 数组。Converts a node's content to a DateTime array. |
ReadDecimalArray(String, String) |
将节点内容转换为 Decimal 数组。Converts a node's content to a Decimal array. |
ReadDecimalArray(XmlDictionaryString, XmlDictionaryString) |
将节点内容转换为 Decimal 数组。Converts a node's content to a Decimal array. |
ReadDoubleArray(String, String) |
将节点内容转换为 Double 数组。Converts a node's content to a Double array. |
ReadDoubleArray(XmlDictionaryString, XmlDictionaryString) |
将节点内容转换为 Double 数组。Converts a node's content to a Double array. |
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. |
ReadElementContentAsBase64(Byte[], Int32, Int32) |
读取元素并对 |
ReadElementContentAsBase64Async(Byte[], Int32, Int32) |
异步读取元素并对 |
ReadElementContentAsBinHex() |
将节点内容转换为 |
ReadElementContentAsBinHex(Byte[], Int32, Int32) |
读取元素并对 |
ReadElementContentAsBinHexAsync(Byte[], Int32, Int32) |
异步读取元素并对 |
ReadElementContentAsBoolean() |
将元素内容转换为 Boolean。Converts an element's content to a Boolean. |
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() |
将元素内容转换为 DateTime。Converts an element's content to a DateTime. |
ReadElementContentAsDateTime() |
读取当前元素并将内容作为 DateTime 对象返回。Reads the current element and returns the contents as a DateTime object. (继承自 XmlReader) |
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() |
将元素内容转换为 Decimal。Converts an element's content to a Decimal. |
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() | |
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). |
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() | |
ReadElementContentAsInt() |
将元素内容转换为整数 (Int32)。Converts an element's content to an integer (Int32). |
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). |
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() | |
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() |
将元素内容转换为 TimeSpan。Converts an element's content to a TimeSpan. |
ReadElementContentAsUniqueId() |
将元素的内容转换为唯一标识符。Converts an element's content to a unique identifier. |
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) |
在读取纯文本元素之前,检查所找到元素的 LocalName 和 NamespaceURI 属性是否与给定的字符串匹配。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. |
ReadFullStartElement(String) |
检查当前节点是否为具有给定 |
ReadFullStartElement(String, String) |
检查当前节点是否为具有给定 |
ReadFullStartElement(XmlDictionaryString, XmlDictionaryString) |
检查当前节点是否为具有给定 |
ReadGuidArray(String, String) |
将具有给定 |
ReadGuidArray(XmlDictionaryString, XmlDictionaryString) |
将具有给定 |
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) |
将具有给定 |
ReadInt16Array(XmlDictionaryString, XmlDictionaryString) |
将具有给定 |
ReadInt32Array(String, String) |
将具有给定 |
ReadInt32Array(XmlDictionaryString, XmlDictionaryString) |
将具有给定 |
ReadInt64Array(String, String) |
将具有给定 |
ReadInt64Array(XmlDictionaryString, XmlDictionaryString) |
将具有给定 |
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) |
将具有给定 |
ReadSingleArray(XmlDictionaryString, XmlDictionaryString) |
将具有给定 |
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) |
检查当前内容节点是否为具有给定 LocalName 和 NamespaceURI 的元素并将读取器推进到下一个节点。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) |
检查当前节点是否为具有给定 |
ReadString() |
将当前节点的内容读入字符串。Reads the contents of the current node into a string. |
ReadString() |
当在派生类中被重写时,将元素或文本节点的内容当做字符串读取。When overridden in a derived class, reads the contents of an element or text node as a string. 但是,建议改用 ReadElementContentAsString 方法,因为该方法可以更直接地处理此操作。However, we recommend that you use the ReadElementContentAsString method instead, because it provides a more straightforward way to handle this operation. (继承自 XmlReader) |
ReadString(Int32) |
将当前节点的内容读入具有最大给定长度的字符串。Reads the contents of the current node into a string with a given maximum length. |
ReadSubtree() |
返回新的 |
ReadTimeSpanArray(String, String) |
将具有给定 |
ReadTimeSpanArray(XmlDictionaryString, XmlDictionaryString) |
将具有给定 |
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) |
让 |
ReadToNextSibling(String, String) |
将 |
ReadValueAsBase64(Byte[], Int32, Int32) |
未实现。Not implemented. |
ReadValueChunk(Char[], Int32, Int32) |
读取嵌入在 XML 文档中的大量文本流。Reads large streams of text embedded in an XML document. (继承自 XmlReader) |
ReadValueChunkAsync(Char[], Int32, Int32) |
异步读取嵌入在 XML 文档中的大量文本流。Asynchronously reads large streams of text embedded in an XML document. (继承自 XmlReader) |
ResolveEntity() |
当在派生类中被重写时,解析 |
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. |
ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
TryGetArrayLength(Int32) |
不在此类中实现(它始终返回 |
TryGetBase64ContentLength(Int32) |
不在此类中实现(它始终返回 |
TryGetLocalNameAsDictionaryString(XmlDictionaryString) |
不在此类中实现(它始终返回 |
TryGetNamespaceUriAsDictionaryString(XmlDictionaryString) |
不在此类中实现(它始终返回 |
TryGetValueAsDictionaryString(XmlDictionaryString) |
不在此类中实现(它始终返回 |
显式接口实现
IDisposable.Dispose() |
有关此成员的说明,请参见 Dispose()。For a description of this member, see Dispose(). (继承自 XmlReader) |