Читати англійською Редагувати

Поділитися через


IXmlMtomReaderInitializer.SetInput Method

Definition

Specifies initialization requirements for XML MTOM readers that implement this method.

Overloads

SetInput(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

Specifies initialization requirements for XML MTOM readers that read a stream.

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

Specifies initialization requirements for XML MTOM readers that read a buffer.

SetInput(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

Specifies initialization requirements for XML MTOM readers that read a stream.

C#
public void SetInput(System.IO.Stream stream, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose onClose);

Parameters

stream
Stream

The stream from which to read.

encodings
Encoding[]

The possible character encodings of the stream.

contentType
String

The Content-Type of the message. Can be null if the MIME type is present in the document being read.

quotas
XmlDictionaryReaderQuotas

The XmlDictionaryReaderQuotas to apply to the reader.

maxBufferSize
Int32

The maximum allowed size of the buffer.

onClose
OnXmlDictionaryReaderClose

The delegate to use when an onClose event happens.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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

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

Specifies initialization requirements for XML MTOM readers that read a buffer.

C#
public void SetInput(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose onClose);

Parameters

buffer
Byte[]

The buffer from which to read.

offset
Int32

The starting position from which to read in buffer.

count
Int32

The number of bytes that can be read from buffer.

encodings
Encoding[]

The possible character encodings of the input.

contentType
String

The Content-Type of the message. Can be null if the MIME type is present in the document being read.

quotas
XmlDictionaryReaderQuotas

The XmlDictionaryReaderQuotas to apply to the reader.

maxBufferSize
Int32

The maximum allowed size of the buffer.

onClose
OnXmlDictionaryReaderClose

The delegate to use when an onClose event happens.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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