ExecuteXmlReaderAsync(CancellationToken)
This method returns a Task-based asynchronous version of OracleCommand.ExecuteXmlReader(), which fetches the result set as an XmlReader object.
Declaration
// C#
public Task<XmlReader> ExecuteXmlReaderAsync(CancellationToken cancellationToken);Parameter
cancellationToken - The input cancellation token which can be used by the application to cancel the task before command timeout occurs.
Return Value
Task<XmlReader> object representing the asynchronous operation immediately without blocking the calling thread for the whole duration of the query execution.
Implements
DbCommand
Exceptions
InvalidOperationException - The command cannot be executed.