DataContext.Dispose DataContext.Dispose DataContext.Dispose DataContext.Dispose Method

Definición

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

Sobrecargas

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

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

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

Libera los recursos no administrados usados por la clase DataContext y, de forma opcional, libera el recurso administrado.Releases the unmanaged resources used by the DataContext class and optionally releases the managed resource.

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

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

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

Implementaciones

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

Libera los recursos no administrados usados por la clase DataContext y, de forma opcional, libera el recurso administrado.Releases the unmanaged resources used by the DataContext class and optionally releases the managed resource.

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.

Se aplica a