Partager via


AdoDotNetReader.Close Method

Closes the current DbDataReader object instance.

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

Syntax

'Declaration
Public Overrides Sub Close
public override void Close()
public:
virtual void Close() override
abstract Close : unit -> unit  
override Close : unit -> unit
public override function Close()

Implements

IVsDataReader.Close()

Remarks

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

The Close method waits for the data reader to finish returning all of the specified data before terminating. Compare to the Terminate method.

.NET Framework Security

See Also

Reference

AdoDotNetReader Class

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace