แก้ไข

แชร์ผ่าน


IXmlMtomWriterInitializer.SetOutput Method

Definition

When implemented by an MTOM writer, initializes an MTOM writer.

public:
 void SetOutput(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, int maxSizeInBytes, System::String ^ startInfo, System::String ^ boundary, System::String ^ startUri, bool writeMessageHeaders, bool ownsStream);
public void SetOutput (System.IO.Stream stream, System.Text.Encoding encoding, int maxSizeInBytes, string startInfo, string boundary, string startUri, bool writeMessageHeaders, bool ownsStream);
abstract member SetOutput : System.IO.Stream * System.Text.Encoding * int * string * string * string * bool * bool -> unit
Public Sub SetOutput (stream As Stream, encoding As Encoding, maxSizeInBytes As Integer, startInfo As String, boundary As String, startUri As String, writeMessageHeaders As Boolean, ownsStream As Boolean)

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, set to "Application/soap+xml".

boundary
String

The MIME boundary string.

startUri
String

The URI for MIME section.

writeMessageHeaders
Boolean

If true, write message headers.

ownsStream
Boolean

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

Applies to