Freigeben über


AdoDotNetDataReader.Terminate Method

Terminates the data reader immediately, without necessarily returning all of the data nor setting output parameters.

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Overrides Sub Terminate
public override void Terminate()
public:
virtual void Terminate() override
abstract Terminate : unit -> unit 
override Terminate : unit -> unit 
public override function Terminate()

Remarks

Call the Terminate method when the client no longer wants to read data from the reader and wants to close immediately. This method differs from the Close method, in that it does not wait for the data source to finish returning all the data and abruptly terminates mid-stream. A byproduct of calling the Terminate method is that any output parameters are not guaranteed to be set.

This implementation of the Terminate method calls the Cancel method before trying to close.

.NET Framework Security

See Also

Reference

AdoDotNetDataReader Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace