XmlReader.Dispose XmlReader.Dispose XmlReader.Dispose XmlReader.Dispose Method

Definición

Libera los recursos que usa la clase XmlReader.Releases the resources used by the XmlReader class.

Sobrecargas

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos usados por la instancia actual de la clase XmlReader.Releases all resources used by the current instance of the XmlReader class.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa XmlReader y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos usados por la instancia actual de la clase XmlReader.Releases all resources used by the current instance of the XmlReader class.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implementaciones

Excepciones

Se llamó un método XmlReader antes de que se termine una operación asincrónica anterior.An XmlReader method was called before a previous asynchronous operation finished. En este caso, se genera InvalidOperationException con el mensaje “Ya hay una operación asincrónica en curso”.In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa XmlReader y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

Parámetros

disposing
Boolean Boolean Boolean Boolean

Es true para liberar tanto recursos administrados como no administrados; es false para liberar únicamente recursos no administrados.true to release both managed and unmanaged resources; false to release only unmanaged resources.

Excepciones

Se llamó un método XmlReader antes de que se termine una operación asincrónica anterior.An XmlReader method was called before a previous asynchronous operation finished. En este caso, se genera InvalidOperationException con el mensaje “Ya hay una operación asincrónica en curso”.In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

Se aplica a