Läs på engelska Redigera

Dela via


IXmlJsonReaderInitializer Interface

Definition

Specifies the interface for initializing a JavaScript Object Notation (JSON) reader when reusing them to read from a particular stream or buffer.

C#
public interface IXmlJsonReaderInitializer

Remarks

The XmlDictionaryReader objects created by one of the CreateJsonReader methods implement this interface and are initialized ready to read JSON-encoded data. But if a user wants to reuse the same XmlDictionaryReader object to read other JSON-encoded data, then the reader must be initialized to the second dataset to be read by using one of the SetInput methods.

Methods

SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

Reinitializes a JavaScript Object Notation (JSON) enabled reader to a specified buffer that contains JSON-encoded data.

SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

Reinitializes a JavaScript Object Notation (JSON) enabled reader to a specified stream that contains JSON-encoded data.

Applies to

Produkt Versioner
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1