Compartir a través de


AdoDotNetDataReader.Close Method

Closes the current IDataReader object instance.

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.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()

Remarks

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.

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

See Also

Reference

AdoDotNetDataReader Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace