XmlDictionaryReader.CreateMtomReader XmlDictionaryReader.CreateMtomReader XmlDictionaryReader.CreateMtomReader XmlDictionaryReader.CreateMtomReader Method

定义

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

重载

CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) 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(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Stream, 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[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas) 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[], XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas) 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) CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

注解

MTOM 允许用户优化 SOAP 消息的传输和连网格式。MTOM allows users to optimize the transmission and wire format of their SOAP messages.

CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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);
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[]

要从其中读取数据的缓冲区。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.

encodings
Encoding[]

输入的可能的字符编码。The possible character encodings of the input.

contentType
String String String String

消息的内容类型 MIME 类型。The Content-Type MIME type of the message.

maxBufferSize
Int32 Int32 Int32 Int32

允许的缓冲区最大大小。The maximum allowed size of the buffer.

onClose
OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose

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

返回

注解

此方法使用由 encodings 指定的字符编码之一,从具有指定偏移量和计数的缓冲区中读取 Encoding 的实例数组。This method reads from a buffer with a specified offset and count, using one of the character encodings specified by encodings, an array of instances of Encoding. 消息为指定的 MIME 类型。The message is of the specified MIME type. 如果 contentTypenull,则消息中必须有内容类型 MIME 标头。If contentType is null, the Content-Type MIME header must be present in the message.

CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader

参数

stream
Stream Stream Stream Stream

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

encodings
Encoding[]

流的可能的字符编码。The possible character encodings of the stream.

contentType
String String String String

消息的内容类型 MIME 类型。The Content-Type MIME type of the message.

maxBufferSize
Int32 Int32 Int32 Int32

要应用于读取器的 XmlDictionaryReaderQuotasThe XmlDictionaryReaderQuotas to apply to the reader.

onClose
OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose OnXmlDictionaryReaderClose

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

返回

注解

此方法使用由 encodings 指定的字符编码之一从流中读取 Encoding 的实例数组。This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. 消息为指定的 MIME 类型。The message is of the specified MIME type. 如果 contentTypenull,则消息中必须有内容类型 MIME 标头。If contentType is null, the Content-Type MIME header must be present in the message.

CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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);
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[]

要从其中读取数据的缓冲区。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.

encodings
Encoding[]

输入的可能的字符编码。The possible character encodings of the input.

contentType
String String String String

消息的内容类型 MIME 类型。The Content-Type MIME type of the message.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

要应用于此读取器的配额。The quotas to apply to this reader.

返回

注解

此方法使用由encodings指定的字符编码之一 (实例的Encoding数组) 从具有指定偏移量和计数的缓冲区中读取。This method reads from a buffer with a specified offset and count, using one of the character encodings specified by encodings, an array of instances of Encoding. 消息为指定的 MIME 类型。The message is of the specified MIME type. 如果 contentTypenull,则消息中必须有内容类型 MIME 标头。If contentType is null, the Content-Type MIME header must be present in the message.

CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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[]

要从其中读取数据的缓冲区。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.

encodings
Encoding[]

输入的可能的字符编码。The possible character encodings of the input.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

要应用于此读取器的配额。The quotas to apply to this reader.

返回

注解

此方法使用由 encodings 指定的字符编码之一,从具有指定偏移量和计数的缓冲区中读取 Encoding 的实例数组。This method reads from a buffer with a specified offset and count, using one of the character encodings specified by encodings, an array of instances of Encoding.

CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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

参数

stream
Stream Stream Stream Stream

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

encoding
Encoding Encoding Encoding Encoding

流的可能的字符编码。The possible character encoding of the stream.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

要应用于此读取器的配额。The quotas to apply to this reader.

返回

异常

注解

此方法使用由 encoding 指定的字符编码从流中读取 Encoding 的实例。This method reads from a stream, using the character encoding specified by encoding, an instance of Encoding.

CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader

参数

stream
Stream Stream Stream Stream

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

encodings
Encoding[]

流的可能的字符编码。The possible character encodings of the stream.

contentType
String String String String

消息的内容类型 MIME 类型。The Content-Type MIME type of the message.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

要应用于此读取器的配额。The quotas to apply to this reader.

返回

注解

此方法使用由 encodings 指定的字符编码之一从流中读取 Encoding 的实例数组。This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. 消息为指定的 MIME 类型。The message is of the specified MIME type. 如果 contentTypenull,则消息中必须有内容类型 MIME 标头。If contentType is null, the Content-Type MIME header must be present in the message.

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas) CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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

参数

stream
Stream Stream Stream Stream

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

encodings
Encoding[]

流的可能的字符编码。The possible character encodings of the stream.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

要应用于此读取器的配额。The quotas to apply to this reader.

返回

异常

注解

此方法使用由 encodings 指定的字符编码之一从流中读取 Encoding 的实例数组。This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding.

CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas) CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas)

创建以 MTOM 格式读取 XML 的 XmlDictionaryReader 的实例。Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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

参数

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

输入的可能的字符编码。The possible character encoding of the input.

quotas
XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas

要应用于此读取器的配额。The quotas to apply to this reader.

返回

异常

注解

此方法使用由 encoding 指定的字符编码,从具有指定偏移量和计数的缓冲区中读取 Encoding 的实例。This method reads from a buffer with a specified offset and count, using the character encoding specified by encoding, an instance of Encoding.

适用于