IXmlBinaryWriterInitializer.SetOutput 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定實作這個方法之 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。
- session
- XmlBinaryWriterSession
要使用的 XmlBinaryWriterSession。
- ownsStream
- Boolean
true
以指出寫入器會在完成時關閉資料流;否則為 false
。