共用方式為


IXmlBinaryWriterInitializer.SetOutput 方法

定義

指定實作這個方法之 XML 二進位寫入器的初始化需求。

public:
 void SetOutput(System::IO::Stream ^ stream, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlBinaryWriterSession ^ session, bool ownsStream);
public void SetOutput (System.IO.Stream stream, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlBinaryWriterSession? session, bool ownsStream);
public void SetOutput (System.IO.Stream stream, System.Xml.IXmlDictionary dictionary, System.Xml.XmlBinaryWriterSession session, bool ownsStream);
abstract member SetOutput : System.IO.Stream * System.Xml.IXmlDictionary * System.Xml.XmlBinaryWriterSession * bool -> unit
Public Sub SetOutput (stream As Stream, dictionary As IXmlDictionary, session As XmlBinaryWriterSession, ownsStream As Boolean)

參數

stream
Stream

要寫入的資料流。

dictionary
IXmlDictionary

要使用的 XmlDictionary

ownsStream
Boolean

true 以指出寫入器會在完成時關閉資料流;否則為 false

適用於