Прочетете на английски Редактиране

Споделяне чрез


XmlDictionaryReader.CreateMtomReader Method

Definition

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

Overloads

Remarks

MTOM allows users to optimize the transmission and wire format of their SOAP messages.

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose? onClose);
C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(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 MIME type of the message.

quotas
XmlDictionaryReaderQuotas

The XmlDictionaryReaderQuotas to apply to the reader.

maxBufferSize
Int32

The maximum allowed size of the buffer.

onClose
OnXmlDictionaryReaderClose

The delegate to be called when the reader is closed.

Returns

An instance of XmlDictionaryReader.

Remarks

This method reads from a buffer with a specified offset and count, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. If contentType is null, the Content-Type MIME header must be present in the message.

Applies to

.NET 10 и други версии
Продукт Версии
.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

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

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose? onClose);
C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(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 MIME type of the message.

quotas
XmlDictionaryReaderQuotas

The MIME type of the message.

maxBufferSize
Int32

The XmlDictionaryReaderQuotas to apply to the reader.

onClose
OnXmlDictionaryReaderClose

The delegate to be called when the reader is closed.

Returns

An instance of XmlDictionaryReader.

Remarks

This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. If contentType is null, the Content-Type MIME header must be present in the message.

Applies to

.NET 10 и други версии
Продукт Версии
.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

CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas);

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 MIME type of the message.

quotas
XmlDictionaryReaderQuotas

The quotas to apply to this reader.

Returns

An instance of XmlDictionaryReader.

Remarks

This method reads from a buffer with a specified offset and count, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. If contentType is null, the Content-Type MIME header must be present in the message.

Applies to

.NET 10 и други версии
Продукт Версии
.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

CreateMtomReader(Byte[], Int32, Int32, Encoding[], XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, System.Xml.XmlDictionaryReaderQuotas quotas);

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.

quotas
XmlDictionaryReaderQuotas

The quotas to apply to this reader.

Returns

An instance of XmlDictionaryReader.

Remarks

This method reads from a buffer with a specified offset and count, using one of the character encodings specified by encodings, an array of instances of Encoding.

Applies to

.NET 10 и други версии
Продукт Версии
.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

CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas);

Parameters

stream
Stream

The stream from which to read.

encoding
Encoding

The possible character encoding of the stream.

quotas
XmlDictionaryReaderQuotas

The quotas to apply to this reader.

Returns

An instance of XmlDictionaryReader.

Exceptions

encoding is null.

Remarks

This method reads from a stream, using the character encoding specified by encoding, an instance of Encoding.

Applies to

.NET 10 и други версии
Продукт Версии
.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

CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas);

Parameters

stream
Stream

The stream from which to read.

encodings
Encoding[]

The possible character encodings of the stream.

contentType
String

The Content-Type MIME type of the message.

quotas
XmlDictionaryReaderQuotas

The quotas to apply to this reader.

Returns

An instance of XmlDictionaryReader.

Remarks

This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. If contentType is null, the Content-Type MIME header must be present in the message.

Applies to

.NET 10 и други версии
Продукт Версии
.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

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(System.IO.Stream stream, System.Text.Encoding[] encodings, System.Xml.XmlDictionaryReaderQuotas quotas);

Parameters

stream
Stream

The stream from which to read.

encodings
Encoding[]

The possible character encodings of the stream.

quotas
XmlDictionaryReaderQuotas

The quotas to apply to this reader.

Returns

An instance of XmlDictionaryReader.

Exceptions

encoding is null.

Remarks

This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding.

Applies to

.NET 10 и други версии
Продукт Версии
.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

CreateMtomReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

C#
public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas);

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.

encoding
Encoding

The possible character encoding of the input.

quotas
XmlDictionaryReaderQuotas

The quotas to apply to this reader.

Returns

An instance of XmlDictionaryReader.

Exceptions

encoding is null.

Remarks

This method reads from a buffer with a specified offset and count, using the character encoding specified by encoding, an instance of Encoding.

Applies to

.NET 10 и други версии
Продукт Версии
.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