XmlDictionaryReader.CreateTextReader 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 的實例 XmlDictionaryReader。
多載
備註
這些過載會產生一個 的 XmlDictionaryReader實例。
CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)
建立 的實例 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)
建立 的實例 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)
建立 的實例 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)
建立 的實例 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)
建立 的實例 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 文字而優化。