IXmlTextWriterInitializer.SetOutput Method (Stream, Encoding, Boolean)

 

Specifies initialization requirements for XML text writers that implement this method.

Namespace:   System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

void SetOutput(
	Stream stream,
	Encoding encoding,
	bool ownsStream
)

Parameters

stream
Type: System.IO.Stream

The stream to write to.

encoding
Type: System.Text.Encoding

The character encoding of the stream.

ownsStream
Type: System.Boolean

If true, stream is closed by the writer when done; otherwise false.

.NET Framework
Available since 3.0
Return to top
Show: