Share via


DataReader.Dispose Method

Releases managed resources held for the current DataReader instance.

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

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As DataReader

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

This method ensures that all resources associated with the current DataReader object instance are released.

.NET Framework Security

See Also

Reference

DataReader Class

DataReader Members

Dispose Overload

Microsoft.VisualStudio.Data.Framework Namespace