XmlDictionaryReader.CreateMtomReader Metodo

Definizione

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

Overload

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

Commenti

MTOM consente agli utenti di ottimizzare la trasmissione e il formato personalizzato dei messaggi SOAP.

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas, int maxBufferSize, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
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);
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);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas, maxBufferSize As Integer, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader

Parametri

buffer
Byte[]

Il buffer da cui eseguire la lettura.

offset
Int32

Posizione iniziale dalla quale leggere nel buffer.

count
Int32

Numero di byte che possono essere letti dal buffer.

encodings
Encoding[]

Possibili codifiche di caratteri dell'input.

contentType
String

Tipo Content-Type MIME del messaggio.

quotas
XmlDictionaryReaderQuotas

XmlDictionaryReaderQuotas da applicare al reader.

maxBufferSize
Int32

Dimensione massima consentita del buffer.

onClose
OnXmlDictionaryReaderClose

Delegato da chiamare quando il reader viene chiuso.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Commenti

Questo metodo legge da un buffer con un offset specificato e conta, utilizzando una delle codifiche dei caratteri specificata da encodings, una matrice di istanze di Encoding. Il messaggio è del tipo MIME specificato. Se contentType è null, l'intestazione Content-Type MIME deve essere presente nel messaggio.

Si applica a

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas, int maxBufferSize, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
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);
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);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas, maxBufferSize As Integer, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader

Parametri

stream
Stream

Il flusso da cui eseguire la lettura.

encodings
Encoding[]

Possibili codifiche di caratteri del flusso.

contentType
String

Tipo Content-Type MIME del messaggio.

quotas
XmlDictionaryReaderQuotas

Il tipo MIME del messaggio.

maxBufferSize
Int32

XmlDictionaryReaderQuotas da applicare al reader.

onClose
OnXmlDictionaryReaderClose

Delegato da chiamare quando il reader viene chiuso.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Commenti

Questo metodo legge da un flusso, utilizzando una delle codifiche dei caratteri specificate da encodings, una matrice di istanze di Encoding. Il messaggio è del tipo MIME specificato. Se contentType è null, l'intestazione Content-Type MIME deve essere presente nel messaggio.

Si applica a

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parametri

buffer
Byte[]

Il buffer da cui eseguire la lettura.

offset
Int32

Posizione iniziale dalla quale leggere nel buffer.

count
Int32

Numero di byte che possono essere letti dal buffer.

encodings
Encoding[]

Possibili codifiche di caratteri dell'input.

contentType
String

Tipo Content-Type MIME del messaggio.

quotas
XmlDictionaryReaderQuotas

Le quote da applicare a questo reader.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Commenti

Questo metodo legge da un buffer con un offset specificato e conta, utilizzando una delle codifiche dei caratteri specificata da encodings, una matrice di istanze di Encoding. Il messaggio è del tipo MIME specificato. Se contentType è null, l'intestazione Content-Type MIME deve essere presente nel messaggio.

Si applica a

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parametri

buffer
Byte[]

Il buffer da cui eseguire la lettura.

offset
Int32

Posizione iniziale dalla quale leggere nel buffer.

count
Int32

Numero di byte che possono essere letti dal buffer.

encodings
Encoding[]

Possibili codifiche di caratteri dell'input.

quotas
XmlDictionaryReaderQuotas

Le quote da applicare a questo reader.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Commenti

Questo metodo legge da un buffer con un offset specificato e conta, utilizzando una delle codifiche dei caratteri specificata da encodings, una matrice di istanze di Encoding.

Si applica a

CreateMtomReader(Stream, Encoding, XmlDictionaryReaderQuotas)

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encoding As Encoding, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parametri

stream
Stream

Il flusso da cui eseguire la lettura.

encoding
Encoding

Possibile codifica di caratteri del flusso.

quotas
XmlDictionaryReaderQuotas

Le quote da applicare a questo reader.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Eccezioni

encoding è null.

Commenti

Questo metodo legge da un flusso, utilizzando la codifica dei caratteri specificata da encoding, un'istanza di Encoding.

Si applica a

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (System.IO.Stream stream, System.Text.Encoding[] encodings, string? contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (System.IO.Stream stream, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parametri

stream
Stream

Il flusso da cui eseguire la lettura.

encodings
Encoding[]

Possibili codifiche di caratteri del flusso.

contentType
String

Tipo Content-Type MIME del messaggio.

quotas
XmlDictionaryReaderQuotas

Le quote da applicare a questo reader.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Commenti

Questo metodo legge da un flusso, utilizzando una delle codifiche dei caratteri specificate da encodings, una matrice di istanze di Encoding. Il messaggio è del tipo MIME specificato. Se contentType è null, l'intestazione Content-Type MIME deve essere presente nel messaggio.

Si applica a

CreateMtomReader(Stream, Encoding[], XmlDictionaryReaderQuotas)

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (System.IO.Stream stream, System.Text.Encoding[] encodings, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : System.IO.Stream * System.Text.Encoding[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (stream As Stream, encodings As Encoding(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parametri

stream
Stream

Il flusso da cui eseguire la lettura.

encodings
Encoding[]

Possibili codifiche di caratteri del flusso.

quotas
XmlDictionaryReaderQuotas

Le quote da applicare a questo reader.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Eccezioni

encoding è null.

Commenti

Questo metodo legge da un flusso, utilizzando una delle codifiche dei caratteri specificate da encodings, una matrice di istanze di Encoding.

Si applica a

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

Crea un'istanza di XmlDictionaryReader che legge codice XML in formato MTOM.

public:
 static System::Xml::XmlDictionaryReader ^ CreateMtomReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateMtomReader (byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateMtomReader : byte[] * int * int * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateMtomReader (buffer As Byte(), offset As Integer, count As Integer, encoding As Encoding, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parametri

buffer
Byte[]

Il buffer da cui eseguire la lettura.

offset
Int32

Posizione iniziale dalla quale leggere nel buffer.

count
Int32

Numero di byte che possono essere letti dal buffer.

encoding
Encoding

Possibili codifica di caratteri dell'input.

quotas
XmlDictionaryReaderQuotas

Le quote da applicare a questo reader.

Restituisce

XmlDictionaryReader

Istanza di XmlDictionaryReader.

Eccezioni

encoding è null.

Commenti

Questo metodo legge da un buffer con un offset specificato e conta, utilizzando la codifica dei caratteri specificata da encoding, un'istanza di Encoding.

Si applica a