Closes the DataReader instance.
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Public MustOverride Sub Close Dim instance As DataReader instance.Close()
public abstract void Close()
public: virtual void Close() abstract
public abstract function Close()
You should close data readers when the consumer has completed reading data or no longer wishes 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 to the Terminate method.
- 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.