XmlDictionaryReader.CreateTextReader 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 XmlDictionaryReader 的实例。
重载
注解
这些重载创建一 XmlDictionaryReader个实例。
CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建 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);
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
Public Shared Function CreateTextReader (stream As Stream, encoding As Encoding, quotas As XmlDictionaryReaderQuotas, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
参数
- stream
- Stream
要从中读取的流。
- onClose
- OnXmlDictionaryReaderClose
读取器关闭时要调用的委托。
返回
注解
创建的读取器已针对读取 UTF-8 文本进行优化。
适用于
CreateTextReader(Byte[], XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建 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[]
要从中读取的缓冲区。
- quotas
- XmlDictionaryReaderQuotas
应用于读取器的配额。
返回
例外
buffer 是 null。
注解
创建的读取器已针对读取 UTF-8 文本进行优化。
适用于
CreateTextReader(Stream, XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建 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
Public Shared Function CreateTextReader (stream As Stream, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
参数
- stream
- Stream
要从中读取的流。
- quotas
- XmlDictionaryReaderQuotas
应用于读取器的配额。
返回
注解
创建的读取器已针对读取 UTF-8 文本进行优化。
适用于
CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建 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[]
要从中读取的缓冲区。
- offset
- Int32
要从中读取 buffer的起始位置。
- count
- Int32
可从中读取 buffer的字节数。
- quotas
- XmlDictionaryReaderQuotas
应用于读取器的配额。
返回
注解
创建的读取器已针对读取 UTF-8 文本进行优化。
适用于
CreateTextReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建 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);
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
Public Shared Function CreateTextReader (buffer As Byte(), offset As Integer, count As Integer, encoding As Encoding, quotas As XmlDictionaryReaderQuotas, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
参数
- buffer
- Byte[]
要从中读取的缓冲区。
- offset
- Int32
要从中读取 buffer的起始位置。
- count
- Int32
可从中读取 buffer的字节数。
- onClose
- OnXmlDictionaryReaderClose
读取器关闭时要调用的委托。
返回
注解
创建的读取器已针对读取 UTF-8 文本进行优化。