IXmlMtomWriterInitializer.SetOutput 方法

定义

当由 MTOM 编写器实现时,初始化 MTOM 编写器。

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

要写入的流。

encoding
Encoding

流的字符编码。

maxSizeInBytes
Int32

在编写器中缓冲的最大字节数。

startInfo
String

ContentType SOAP 标头中的属性,设置为“Application/soap+xml”。

boundary
String

MIME 边界字符串。

startUri
String

MIME 部分的 URI。

writeMessageHeaders
Boolean

如果为 true,则写入消息头。

ownsStream
Boolean

如果指示完成时编写器关闭流,则为 true;否则为 false

适用于