Export (0) Print
Expand All

SqlCommand.ExecuteXmlReaderAsync Method

.NET Framework 4.5

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ExecuteXmlReaderAsync() 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.
Public method ExecuteXmlReaderAsync(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.
Top
Show:
© 2014 Microsoft