Terminates the data reader immediately, without necessarily returning all of the data nor setting output parameters.
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Public Overridable Sub Terminate Dim instance As DataReader instance.Terminate()
public virtual void Terminate()
public: virtual void Terminate()
public function Terminate()
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.
- 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.