XmlWriter.Dispose Método

Definición

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

Sobrecargas

Dispose()

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

Dispose(Boolean)

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

Dispose()

Libera todos los recursos usados por la instancia actual de la clase XmlWriter.Releases all resources used by the current instance of the XmlWriter 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 XmlWriter antes de que se termine una operación asincrónica anterior.An XmlWriter 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

Dispose(Boolean)

Libera los recursos no administrados que usa XmlWriter y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the XmlWriter 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

true para liberar tanto recursos administrados como no administrados; 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 XmlWriter antes de que se termine una operación asincrónica anterior.An XmlWriter 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