Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IXmlTextWriterInitializer.SetOutput Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft