SqlCommand.ExecuteXmlReaderAsync Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this SqlCommand and returns results as an XmlReader object.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodExecuteXmlReaderAsync()

An asynchronous version of ExecuteXmlReader, which sends the CommandText to the Connection and builds an XmlReader object.

Exceptions will be reported via the returned Task object.

System_CAPS_pubmethodExecuteXmlReaderAsync(CancellationToken)

An asynchronous version of ExecuteXmlReader, which sends the CommandText to the Connection and builds an XmlReader object.

The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.

Return to top
Show: