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

Definition

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

Overloads

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)

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)

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)

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)

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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

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)

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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

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)

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

Remarks

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)

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

Parameters

buffer
Byte[]

The buffer from which to read.

offset
Int32 Int32 Int32 Int32

The starting position from which to read in buffer.

count
Int32 Int32 Int32 Int32

The number of bytes that can be read from buffer.

encodings
Encoding[]

The possible character encodings of the input.

contentType
String String String String

The Content-Type MIME type of the message.

maxBufferSize
Int32 Int32 Int32 Int32

The maximum allowed size of the buffer.

Returns

Remarks

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. The message is of the specified MIME type. 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)

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

Parameters

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

The Content-Type MIME type of the message.

maxBufferSize
Int32 Int32 Int32 Int32

The XmlDictionaryReaderQuotas to apply to the reader.

Returns

Remarks

This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. 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)

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

Parameters

buffer
Byte[]

The buffer from which to read.

offset
Int32 Int32 Int32 Int32

The starting position from which to read in buffer.

count
Int32 Int32 Int32 Int32

The number of bytes that can be read from buffer.

encodings
Encoding[]

The possible character encodings of the input.

contentType
String String String String

The Content-Type MIME type of the message.

Returns

Remarks

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. The message is of the specified MIME type. 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)

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

Parameters

buffer
Byte[]

The buffer from which to read.

offset
Int32 Int32 Int32 Int32

The starting position from which to read in buffer.

count
Int32 Int32 Int32 Int32

The number of bytes that can be read from buffer.

encodings
Encoding[]

The possible character encodings of the input.

Returns

Remarks

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)

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

Parameters

stream
Stream Stream Stream Stream

The stream from which to read.

encoding
Encoding Encoding Encoding Encoding

The possible character encoding of the stream.

Returns

Exceptions

Remarks

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)

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

Parameters

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

The Content-Type MIME type of the message.

Returns

Remarks

This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. 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)

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

Parameters

stream
Stream Stream Stream Stream

The stream from which to read.

encodings
Encoding[]

The possible character encodings of the stream.

Returns

Exceptions

Remarks

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)

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

Parameters

buffer
Byte[]

The buffer from which to read.

offset
Int32 Int32 Int32 Int32

The starting position from which to read in buffer.

count
Int32 Int32 Int32 Int32

The number of bytes that can be read from buffer.

encoding
Encoding Encoding Encoding Encoding

The possible character encoding of the input.

Returns

Exceptions

Remarks

This method reads from a buffer with a specified offset and count, using the character encoding specified by encoding, an instance of Encoding.

Applies to