IXmlMtomWriterInitializer.SetOutput(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) 方法

定义

当由 MTOM 编写器实现时,初始化 MTOM 编写器。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)

参数

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

ContentType SOAP 标头中的属性,设置为“Application/soap+xml”。An attribute in the ContentType SOAP header, set to "Application/soap+xml".

boundary
String

MIME 边界字符串。The MIME boundary string.

startUri
String

MIME 部分的 URI。The URI for MIME section.

writeMessageHeaders
Boolean

如果为 true,则写入消息头。If true, write message headers.

ownsStream
Boolean

如果指示完成时编写器关闭流,则为 true;否则为 falsetrue to indicate the stream is closed by the writer when done; otherwise, false.

适用于