DataReader.Dispose Method (Boolean)

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

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'使用
Dim disposing As Boolean

Me.Dispose(disposing)
protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
protected function Dispose(
    disposing : boolean
)

Parameters

  • disposing
    Type: System.Boolean

    Indicates whether or not this method was called from the public Dispose method.

Remarks

The base implementation of this method calls the Close method if disposing is set to true.

Permissions

See Also

Reference

DataReader Class

DataReader Members

Dispose Overload

Microsoft.VisualStudio.Data Namespace