XmlDictionaryReader.CreateMtomReader 方法

定义

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

重载

名称 说明
CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

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

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

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

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

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

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

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

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

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

创建一个实例,该实例 XmlDictionaryReader 以 MTOM 格式读取 XML。

注解

MTOM 允许用户优化其 SOAP 消息的传输和线路格式。

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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 类型。

maxBufferSize
Int32

缓冲区的最大允许大小。

onClose
OnXmlDictionaryReaderClose

读取器关闭时要调用的委托。

返回

XmlDictionaryReader的实例。

注解

此方法使用由 实例encodings数组指定的Encoding字符编码之一从具有指定偏移量和计数的缓冲区中读取。 消息为指定的 MIME 类型。 contentType如果是null,则消息中必须存在 Content-Type MIME 标头。

适用于

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

读取器关闭时要调用的委托。

返回

XmlDictionaryReader的实例。

注解

此方法使用由 encodings 实例 Encoding数组指定的字符编码之一从流中读取。 消息为指定的 MIME 类型。 contentType如果是null,则消息中必须存在 Content-Type MIME 标头。

适用于

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

要应用于此读取器的配额。

返回

XmlDictionaryReader的实例。

注解

此方法使用由 实例encodings数组指定的Encoding字符编码之一从具有指定偏移量和计数的缓冲区中读取。 消息为指定的 MIME 类型。 contentType如果是null,则消息中必须存在 Content-Type MIME 标头。

适用于

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

要应用于此读取器的配额。

返回

XmlDictionaryReader的实例。

注解

此方法使用由 实例encodings数组指定的Encoding字符编码之一从具有指定偏移量和计数的缓冲区中读取。

适用于

CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

要应用于此读取器的配额。

返回

XmlDictionaryReader的实例。

例外

encodingnull

注解

此方法使用 实例encoding指定的Encoding字符编码从流中读取。

适用于

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

要应用于此读取器的配额。

返回

XmlDictionaryReader的实例。

注解

此方法使用由 encodings 实例 Encoding数组指定的字符编码之一从流中读取。 消息为指定的 MIME 类型。 contentType如果是null,则消息中必须存在 Content-Type MIME 标头。

适用于

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

要应用于此读取器的配额。

返回

XmlDictionaryReader的实例。

例外

encodingsnull

注解

此方法使用由 encodings 实例 Encoding数组指定的字符编码之一从流中读取。

适用于

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

创建一个实例,该实例 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

要应用于此读取器的配额。

返回

XmlDictionaryReader的实例。

例外

encodingnull

注解

此方法使用 实例encoding指定的Encoding字符编码从具有指定偏移量和计数的缓冲区中读取。

适用于