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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.