XmlDictionaryReader.CreateTextReader Método

Definição

Cria uma instância de XmlDictionaryReader.

Sobrecargas

Observações

Estas sobrecargas criam uma instância de XmlDictionaryReader.

CreateTextReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

Cria uma instância de XmlDictionaryReader.

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

Parâmetros

stream
Stream

O fluxo de onde se pode ler.

encoding
Encoding

O Encoding objeto que especifica as propriedades de codificação a aplicar.

onClose
OnXmlDictionaryReaderClose

O delegado a ser chamado quando o leitor estiver fechado.

Devoluções

Um exemplo de XmlDictionaryReader.

Observações

O leitor criado está otimizado para leitura de texto UTF-8.

Aplica-se a

CreateTextReader(Byte[], XmlDictionaryReaderQuotas)

Cria uma instância de XmlDictionaryReader.

public:
 static System::Xml::XmlDictionaryReader ^ CreateTextReader(cli::array <System::Byte> ^ buffer, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateTextReader(byte[] buffer, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateTextReader : byte[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateTextReader (buffer As Byte(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader

Parâmetros

buffer
Byte[]

O buffer de onde se pode ler.

quotas
XmlDictionaryReaderQuotas

As quotas aplicavam-se ao leitor.

Devoluções

Um exemplo de XmlDictionaryReader.

Exceções

buffer é null.

Observações

O leitor criado está otimizado para leitura de texto UTF-8.

Aplica-se a

CreateTextReader(Stream, XmlDictionaryReaderQuotas)

Cria uma instância de XmlDictionaryReader.

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

Parâmetros

stream
Stream

O fluxo de onde se pode ler.

quotas
XmlDictionaryReaderQuotas

As quotas aplicavam-se ao leitor.

Devoluções

Um exemplo de XmlDictionaryReader.

Observações

O leitor criado está otimizado para leitura de texto UTF-8.

Aplica-se a

CreateTextReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas)

Cria uma instância de XmlDictionaryReader.

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

Parâmetros

buffer
Byte[]

O buffer de onde se pode ler.

offset
Int32

A posição inicial a partir da qual se deve ler em buffer.

count
Int32

O número de bytes que podem ser lidos a partir de buffer.

quotas
XmlDictionaryReaderQuotas

As quotas aplicavam-se ao leitor.

Devoluções

Um exemplo de XmlDictionaryReader.

Observações

O leitor criado está otimizado para leitura de texto UTF-8.

Aplica-se a

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

Cria uma instância de XmlDictionaryReader.

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

Parâmetros

buffer
Byte[]

O buffer de onde se pode ler.

offset
Int32

A posição inicial a partir da qual se deve ler em buffer.

count
Int32

O número de bytes que podem ser lidos a partir de buffer.

encoding
Encoding

O Encoding objeto que especifica as propriedades de codificação a aplicar.

onClose
OnXmlDictionaryReaderClose

O delegado a ser chamado quando o leitor estiver fechado.

Devoluções

Um exemplo de XmlDictionaryReader.

Observações

O leitor criado está otimizado para leitura de texto UTF-8.

Aplica-se a