XmlDictionaryReader.CreateMtomReader 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
多載
備註
MTOM 允許使用者優化其 SOAP 訊息的傳輸與線路格式。
CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas, int maxBufferSize, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose? onClose);
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas, maxBufferSize As Integer, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
參數
- buffer
- Byte[]
是閱讀的緩衝區。
- offset
- Int32
讀取 的起始位置 buffer。
- count
- Int32
可從 讀取 buffer的位元組數。
- encodings
- Encoding[]
輸入的可能字元編碼。
- contentType
- String
訊息的 Content-Type MIME 類型。
- quotas
- XmlDictionaryReaderQuotas
XmlDictionaryReaderQuotas請向讀者申請。
- maxBufferSize
- Int32
緩衝區的最大允許大小。
- onClose
- OnXmlDictionaryReaderClose
當朗讀結束時,請請代表出席。
傳回
備註
此方法從具有指定偏移量與計數的緩衝區讀取,使用由 encodings所指定的字元編碼之一,該編碼為 的 Encoding實例陣列。 訊息屬於指定的 MIME 類型。 若 contentType 是 null,則訊息中必須包含 Content-Type MIME 標頭。
適用於
CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas, int maxBufferSize, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose? onClose);
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas, maxBufferSize As Integer, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
參數
- stream
- Stream
閱讀的溪流。
- encodings
- Encoding[]
串流可能的字元編碼。
- contentType
- String
訊息的 Content-Type MIME 類型。
- quotas
- XmlDictionaryReaderQuotas
那種 MIME 類型的訊息。
- maxBufferSize
- Int32
XmlDictionaryReaderQuotas請向讀者申請。
- onClose
- OnXmlDictionaryReaderClose
當朗讀結束時,請請代表出席。
傳回
備註
此方法從串流讀取,使用由 encodings所指定的字元編碼之一,為 的 Encoding實例陣列。 訊息屬於指定的 MIME 類型。 若 contentType 是 null,則訊息中必須包含 Content-Type MIME 標頭。
適用於
CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
參數
- buffer
- Byte[]
是閱讀的緩衝區。
- offset
- Int32
讀取 的起始位置 buffer。
- count
- Int32
可從 讀取 buffer的位元組數。
- encodings
- Encoding[]
輸入的可能字元編碼。
- contentType
- String
訊息的 Content-Type MIME 類型。
- quotas
- XmlDictionaryReaderQuotas
應適用給這位讀者的配額。
傳回
備註
此方法從具有指定偏移量與計數的緩衝區讀取,使用由 encodings所指定的字元編碼之一,該編碼為 的 Encoding實例陣列。 訊息屬於指定的 MIME 類型。 若 contentType 是 null,則訊息中必須包含 Content-Type MIME 標頭。
適用於
CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
參數
- buffer
- Byte[]
是閱讀的緩衝區。
- offset
- Int32
讀取 的起始位置 buffer。
- count
- Int32
可從 讀取 buffer的位元組數。
- encodings
- Encoding[]
輸入的可能字元編碼。
- quotas
- XmlDictionaryReaderQuotas
應適用給這位讀者的配額。
傳回
備註
此方法從具有指定偏移量與計數的緩衝區讀取,使用由 encodings所指定的字元編碼之一,該編碼為 的 Encoding實例陣列。
適用於
CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encoding As Encoding, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
參數
- stream
- Stream
閱讀的溪流。
- encoding
- Encoding
串流可能的字元編碼。
- quotas
- XmlDictionaryReaderQuotas
應適用給這位讀者的配額。
傳回
例外狀況
encoding 是 null。
備註
此方法從串流讀取,使用由 encoding所指定的字元編碼,該編碼為 的 Encoding實例。
適用於
CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
參數
- stream
- Stream
閱讀的溪流。
- encodings
- Encoding[]
串流可能的字元編碼。
- contentType
- String
訊息的 Content-Type MIME 類型。
- quotas
- XmlDictionaryReaderQuotas
應適用給這位讀者的配額。
傳回
備註
此方法從串流讀取,使用由 encodings所指定的字元編碼之一,為 的 Encoding實例陣列。 訊息屬於指定的 MIME 類型。 若 contentType 是 null,則訊息中必須包含 Content-Type MIME 標頭。
適用於
CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encodings As Encoding(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
參數
- stream
- Stream
閱讀的溪流。
- encodings
- Encoding[]
串流可能的字元編碼。
- quotas
- XmlDictionaryReaderQuotas
應適用給這位讀者的配額。
傳回
例外狀況
encodings 是 null。
備註
此方法從串流讀取,使用由 encodings所指定的字元編碼之一,為 的 Encoding實例陣列。
適用於
CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas)
建立一個實例 XmlDictionaryReader ,讀取 MTOM 格式的 XML。
public:
static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encoding As Encoding, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
參數
- buffer
- Byte[]
是閱讀的緩衝區。
- offset
- Int32
讀取 的起始位置 buffer。
- count
- Int32
可從 讀取 buffer的位元組數。
- encoding
- Encoding
輸入的可能字元編碼。
- quotas
- XmlDictionaryReaderQuotas
應適用給這位讀者的配額。
傳回
例外狀況
encoding 是 null。
備註
此方法從具有指定偏移量與計數的緩衝區讀取,使用由 encoding的實例 Encoding指定字元編碼。