A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlcommand.endexecutereader below:

SqlCommand.EndExecuteReader(IAsyncResult) Method (System.Data.SqlClient) | Microsoft Learn

SqlCommand.EndExecuteReader(IAsyncResult) Method Definition

Finishes asynchronous execution of a Transact-SQL statement, returning the requested SqlDataReader.

public:
 System::Data::SqlClient::SqlDataReader ^ EndExecuteReader(IAsyncResult ^ asyncResult);
public System.Data.SqlClient.SqlDataReader EndExecuteReader(IAsyncResult asyncResult);
member this.EndExecuteReader : IAsyncResult -> System.Data.SqlClient.SqlDataReader
Public Function EndExecuteReader (asyncResult As IAsyncResult) As SqlDataReader
Parameters Returns

A SqlDataReader object that can be used to retrieve the requested rows.

Exceptions

asyncResult parameter is null (Nothing in Microsoft Visual Basic)

Examples

For examples demonstrating the use of the EndExecuteReader method, see BeginExecuteReader.

Remarks

When you call BeginExecuteReader to execute a Transact-SQL statement, you must call EndExecuteReader in order to complete the operation. If the process of executing the command has not yet finished, this method blocks until the operation is complete. Users can verify that the command has completed its operation by using the IAsyncResult instance returned by the BeginExecuteReader method. If a callback procedure was specified in the call to BeginExecuteReader, this method must be called.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4