Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Usage
Dim instance As AdoDotNetReader
instance.Close()
public override void Close()
public:
virtual void Close() override
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.