IXmlBinaryReaderInitializer.SetInput Method

Definition

Reinitializes the binary reader using the given input data.

Overloads

SetInput(Stream, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose)

Source:
XmlBinaryReader.cs
Source:
XmlBinaryReader.cs
Source:
XmlBinaryReader.cs

Reinitializes the binary reader using the given input stream.

C#
public void SetInput(System.IO.Stream stream, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession? session, System.Xml.OnXmlDictionaryReaderClose? onClose);
C#
public void SetInput(System.IO.Stream stream, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession session, System.Xml.OnXmlDictionaryReaderClose onClose);

Parameters

stream
Stream

The stream from which to read.

dictionary
IXmlDictionary

XmlDictionary to use.

onClose
OnXmlDictionaryReaderClose

Delegate to call when the reader is closed.

Applies to

.NET 10 and other versions
Product Versions
.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.0, 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

SetInput(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose)

Source:
XmlBinaryReader.cs
Source:
XmlBinaryReader.cs
Source:
XmlBinaryReader.cs

Reinitializes the binary reader using the given input buffer.

C#
public void SetInput(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession? session, System.Xml.OnXmlDictionaryReaderClose? onClose);
C#
public void SetInput(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession session, System.Xml.OnXmlDictionaryReaderClose onClose);

Parameters

buffer
Byte[]

The buffer from which to read.

offset
Int32

Starting position from which to read in buffer.

count
Int32

Number of bytes that can be read from buffer.

dictionary
IXmlDictionary

XmlDictionary to use.

onClose
OnXmlDictionaryReaderClose

Delegate to call when the reader is closed.

Applies to

.NET 10 and other versions
Product Versions
.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.0, 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