Share via


DataReader.Dispose Method

Definition

Overloads

Dispose()

Releases managed resources held for the current DataReader instance.

Dispose(Boolean)

Cleans up resources associated with the current DataReader instance, both when the public Dispose() method is called and when the object is finalized with a call to the Finalize() method.

Dispose()

Releases managed resources held for the current DataReader instance.

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

Implements

Applies to

Dispose(Boolean)

Cleans up resources associated with the current DataReader instance, both when the public Dispose() method is called and when the object is finalized with a call to the Finalize() method.

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)

Parameters

disposing
Boolean

Indicates whether this method was called from the public Dispose() method (as opposed to the Finalize() method.)

Applies to