XmlReader.ReadState Propriedade
Definição
Quando substituído em uma classe derivada, obtém o estado do leitor.When overridden in a derived class, gets the state of the reader.
public:
abstract property System::Xml::ReadState ReadState { System::Xml::ReadState get(); };
public abstract System.Xml.ReadState ReadState { get; }
member this.ReadState : System.Xml.ReadState
Public MustOverride ReadOnly Property ReadState As ReadState
Valor da propriedade
Um dos valores de enumeração que especifica o estado do leitor.One of the enumeration values that specifies the state of the reader.
Exceções
Um método XmlReader foi chamado antes do término de uma operação assíncrona anterior.An XmlReader method was called before a previous asynchronous operation finished. Nesse caso, InvalidOperationException será gerado com a mensagem “Uma operação assíncrona já está em andamento”.In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."
Comentários
A ReadState propriedade tem um dos seguintes valores:The ReadState property has one of the following values:
Initial, quando o XmlReader.Read método é chamado.Initial, when the XmlReader.Read method is called.
Interactive, quando o XmlReader.Read método foi chamado e métodos adicionais podem ser chamados no leitor.Interactive, when the XmlReader.Read method has been called, and additional methods may be called on the reader.
EndOfFile, quando o final do documento XML tiver sido atingido com êxito.EndOfFile, when the end of the XML document has been reached successfully.
Closed, quando o XmlReader.Close método é chamado.Closed, when the XmlReader.Close method is called.
Error, quando um erro está impedindo que a operação de leitura continue.Error, when an error is preventing the read operation from continuing.