XmlDictionaryWriter.CreateMtomWriter XmlDictionaryWriter.CreateMtomWriter XmlDictionaryWriter.CreateMtomWriter Method

Definition

Creates an instance of XmlDictionaryWriter that writes XML in the Message Transmission Optimization Mechanism (MTOM) format.

Overloads

CreateMtomWriter(Stream, Encoding, Int32, String) CreateMtomWriter(Stream, Encoding, Int32, String) CreateMtomWriter(Stream, Encoding, Int32, String)

Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format.

CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean)

Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format.

Remarks

MTOM allows users to optimize the transmission of raw binary data within SOAP messages.

CreateMtomWriter(Stream, Encoding, Int32, String) CreateMtomWriter(Stream, Encoding, Int32, String) CreateMtomWriter(Stream, Encoding, Int32, String)

Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format.

public:
 static System::Xml::XmlDictionaryWriter ^ CreateMtomWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, int maxSizeInBytes, System::String ^ startInfo);
public static System.Xml.XmlDictionaryWriter CreateMtomWriter (System.IO.Stream stream, System.Text.Encoding encoding, int maxSizeInBytes, string startInfo);
static member CreateMtomWriter : System.IO.Stream * System.Text.Encoding * int * string -> System.Xml.XmlDictionaryWriter

Parameters

stream
Stream Stream Stream

The stream to write to.

encoding
Encoding Encoding Encoding

The character encoding of the stream.

maxSizeInBytes
Int32 Int32 Int32

The maximum number of bytes that are buffered in the writer.

startInfo
String String String

An attribute in the ContentType SOAP header.

Returns

CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean)

Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format.

public:
 static System::Xml::XmlDictionaryWriter ^ CreateMtomWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, int maxSizeInBytes, System::String ^ startInfo, System::String ^ boundary, System::String ^ startUri, bool writeMessageHeaders, bool ownsStream);
public static System.Xml.XmlDictionaryWriter CreateMtomWriter (System.IO.Stream stream, System.Text.Encoding encoding, int maxSizeInBytes, string startInfo, string boundary, string startUri, bool writeMessageHeaders, bool ownsStream);
static member CreateMtomWriter : System.IO.Stream * System.Text.Encoding * int * string * string * string * bool * bool -> System.Xml.XmlDictionaryWriter

Parameters

stream
Stream Stream Stream

The stream to write to.

encoding
Encoding Encoding Encoding

The character encoding of the stream.

maxSizeInBytes
Int32 Int32 Int32

The maximum number of bytes that are buffered in the writer.

startInfo
String String String

The content-type of the MIME part that contains the Infoset.

boundary
String String String

The MIME boundary in the message.

startUri
String String String

The content-id URI of the MIME part that contains the Infoset.

writeMessageHeaders
Boolean Boolean Boolean

true to write message headers.

ownsStream
Boolean Boolean Boolean

true to indicate that the stream is closed by the writer when done; otherwise false.

Returns

Applies to