IVsDataReader.Close Method
When implemented by a class, closes the IVsDataReader instance.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
Sub Close
'Usage
Dim instance As IVsDataReader
instance.Close()
void Close()
void Close()
function 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.
Depending on the provider implementation, the Close method might wait for the data reader to finish returning all of the specified data before closing. Compare this method 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.
See Also
Reference
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace