Export (0) Print
Expand All

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 IXmlJsonWriterInitializer

The IXmlJsonWriterInitializer type exposes the following members.

  NameDescription
Public methodSetOutputInitializes (or reinitializes) a JavaScript Object Notation (JSON) writer to a specified output stream with specified character encoding.
Top

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

Supported in: 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft