Compartir a través de


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

'Declaración
Sub Close
void Close()
void Close()
abstract Close : unit -> unit 
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

See Also

Reference

IVsDataReader Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace