IXmlTextWriterInitializer.SetOutput(Stream, Encoding, Boolean) 方法

定义

指定实现此方法的 XML 文本编写器的初始化要求。

public:
 void SetOutput(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, bool ownsStream);
public void SetOutput (System.IO.Stream stream, System.Text.Encoding encoding, bool ownsStream);
abstract member SetOutput : System.IO.Stream * System.Text.Encoding * bool -> unit
Public Sub SetOutput (stream As Stream, encoding As Encoding, ownsStream As Boolean)

参数

stream
Stream

要写入的流。

encoding
Encoding

流的字符编码。

ownsStream
Boolean

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

适用于