Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IXmlJsonWriterInitializer Interface

 

Specifies the interface for initializing a JavaScript Object Notation (JSON) writer when reusing them to write to a particular output stream.

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

public interface class IXmlJsonWriterInitializer

NameDescription
System_CAPS_pubmethodSetOutput(Stream^, Encoding^, Boolean)

Initializes (or reinitializes) a JavaScript Object Notation (JSON) writer to a specified output stream with specified character encoding.

The XmlDictionaryWriter objects created by the CreateJsonWriter methods implement this interface and when created are immediately ready to write JSON-encoded data. But if a user wants to reuse the same XmlDictionaryWriter object to write a new JSON document to another output stream, then the writer must be initialized to the appropriate stream by using the SetOutput(Stream^, Encoding^, Boolean) method.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft