Uredi

Deli z drugimi prek


IXmlJsonWriterInitializer Interface

Definition

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

public interface class IXmlJsonWriterInitializer
public interface IXmlJsonWriterInitializer
type IXmlJsonWriterInitializer = interface
Public Interface IXmlJsonWriterInitializer

Remarks

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.

Methods

SetOutput(Stream, Encoding, Boolean)

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

Applies to