Share via


DataReader.Close Method

Closes the DataReader instance.

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

Syntax

'Declaration
Public MustOverride Sub Close
'Usage
Dim instance As DataReader

instance.Close()
public abstract void Close()
public:
virtual void Close() abstract
public abstract function Close()

Implements

IVsDataReader.Close()

Remarks

You should close data readers when the consumer has completed reading data or no longer wants to read any more data. Closing the reader ensures that output parameters, if any, are populated.

Depending on the provider implementation, the Close method may wait for the data reader to finish returning all of the specified data before closing. Compare this to the Terminate method.

Notes to Inheritors:

The derived class must override this method.

.NET Framework Security

See Also

Reference

DataReader Class

DataReader Members

Microsoft.VisualStudio.Data.Framework Namespace