संपादित करें

इसके माध्यम से साझा किया गया


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)

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

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)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

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
Public Shared Function CreateMtomWriter (stream As Stream, encoding As Encoding, maxSizeInBytes As Integer, startInfo As String) As XmlDictionaryWriter

Parameters

stream
Stream

The stream to write to.

encoding
Encoding

The character encoding of the stream.

maxSizeInBytes
Int32

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

startInfo
String

An attribute in the ContentType SOAP header.

Returns

An instance of XmlDictionaryWriter.

Applies to

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

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

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);
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
Public Shared Function CreateMtomWriter (stream As Stream, encoding As Encoding, maxSizeInBytes As Integer, startInfo As String, boundary As String, startUri As String, writeMessageHeaders As Boolean, ownsStream As Boolean) As XmlDictionaryWriter

Parameters

stream
Stream

The stream to write to.

encoding
Encoding

The character encoding of the stream.

maxSizeInBytes
Int32

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

startInfo
String

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

boundary
String

The MIME boundary in the message.

startUri
String

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

writeMessageHeaders
Boolean

true to write message headers.

ownsStream
Boolean

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

Returns

An instance of XmlDictionaryWriter.

Applies to