XmlDictionaryReader.CreateTextReader XmlDictionaryReader.CreateTextReader XmlDictionaryReader.CreateTextReader XmlDictionaryReader.CreateTextReader Method

定义

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

重载

CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

CreateTextReader(Byte[], XmlDictionaryReaderQuotas) CreateTextReader(Byte[], XmlDictionaryReaderQuotas) CreateTextReader(Byte[], XmlDictionaryReaderQuotas) CreateTextReader(Byte[], XmlDictionaryReaderQuotas)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

CreateTextReader(Stream, XmlDictionaryReaderQuotas) CreateTextReader(Stream, XmlDictionaryReaderQuotas) CreateTextReader(Stream, XmlDictionaryReaderQuotas)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

注解

这些重载创建 XmlDictionaryReader 的实例。These overloads create an instance of XmlDictionaryReader.

CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

public:
 static System::Xml::XmlDictionaryReader ^ CreateTextReader(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateTextReader (System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateTextReader : System.IO.Stream * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader

参数

stream
Stream Stream Stream Stream

要从其中读取数据的流。The stream from which to read.

encoding
Encoding Encoding Encoding Encoding

指定要应用的编码属性的 Encoding 对象。The Encoding object that specifies the encoding properties to apply.

onClose
OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose

读取器关闭时要调用的委托。The delegate to be called when the reader is closed.

返回

注解

创建的读取器针对读取 UTF-8 文本进行了优化。The reader created is optimized for reading UTF-8 text.

CreateTextReader(Byte[], XmlDictionaryReaderQuotas) CreateTextReader(Byte[], XmlDictionaryReaderQuotas) CreateTextReader(Byte[], XmlDictionaryReaderQuotas) CreateTextReader(Byte[], XmlDictionaryReaderQuotas)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

public:
 static System::Xml::XmlDictionaryReader ^ CreateTextReader(cli::array <System::Byte> ^ buffer, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateTextReader (byte[] buffer, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateTextReader : byte[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateTextReader (buffer As Byte(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

参数

buffer
Byte[]

要从其中读取数据的缓冲区。The buffer from which to read.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

应用于读取器的配额。The quotas applied to the reader.

返回

异常

注解

创建的读取器针对读取 UTF-8 文本进行了优化。The reader created is optimized for reading UTF-8 text.

CreateTextReader(Stream, XmlDictionaryReaderQuotas) CreateTextReader(Stream, XmlDictionaryReaderQuotas) CreateTextReader(Stream, XmlDictionaryReaderQuotas)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

public:
 static System::Xml::XmlDictionaryReader ^ CreateTextReader(System::IO::Stream ^ stream, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateTextReader (System.IO.Stream stream, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateTextReader : System.IO.Stream * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader

参数

stream
Stream Stream Stream Stream

要从其中读取数据的流。The stream from which to read.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

应用于读取器的配额。The quotas applied to the reader.

返回

注解

创建的读取器针对读取 UTF-8 文本进行了优化。The reader created is optimized for reading UTF-8 text.

CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

public:
 static System::Xml::XmlDictionaryReader ^ CreateTextReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateTextReader (byte[] buffer, int offset, int count, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateTextReader : byte[] * int * int * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateTextReader (buffer As Byte(), offset As Integer, count As Integer, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

参数

buffer
Byte[]

要从其中读取数据的缓冲区。The buffer from which to read.

offset
Int32 Int32 Int32 Int32

buffer 中开始读取数据的位置。The starting position from which to read in buffer.

count
Int32 Int32 Int32 Int32

可以从 buffer 中读取的字节数。The number of bytes that can be read from buffer.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

应用于读取器的配额。The quotas applied to the reader.

返回

注解

创建的读取器针对读取 UTF-8 文本进行了优化。The reader created is optimized for reading UTF-8 text.

CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

创建 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader.

public:
 static System::Xml::XmlDictionaryReader ^ CreateTextReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateTextReader (byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateTextReader : byte[] * int * int * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader

参数

buffer
Byte[]

要从其中读取数据的缓冲区。The buffer from which to read.

offset
Int32 Int32 Int32 Int32

buffer 中开始读取数据的位置。The starting position from which to read in buffer.

count
Int32 Int32 Int32 Int32

可以从 buffer 中读取的字节数。The number of bytes that can be read from buffer.

encoding
Encoding Encoding Encoding Encoding

指定要应用的编码属性的 Encoding 对象。The Encoding object that specifies the encoding properties to apply.

onClose
OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose

读取器关闭时要调用的委托。The delegate to be called when the reader is closed.

返回

注解

创建的读取器针对读取 UTF-8 文本进行了优化。The reader created is optimized for reading UTF-8 text.

适用于