Interface IQueryExecutionResult
Represents a code query execution result. To compile a code query string and then execute it, use a ExtensionMethodsQuery.
public interface IQueryExecutionResult
- Extension Methods
Properties (5)
Exception
Gets the exception object thrown by the query execution if any, else gets null.
Exception Exception { get; }
Property Value
ExecutionDuration
Gets the query execution duration.
TimeSpan ExecutionDuration { get; }
Property Value
OriginalQueryString
Gets the query string compiled and then executed to obtain this execution result.
string OriginalQueryString { get; }
Property Value
Status
Gets a value indicating the status of this query execution result, Success, Exception if an exception was thrown by the query execution, TimeOut if the query execution timed out.
QueryExecutionStatus Status { get; }
Property Value
Remarks
If Success is returned then SuccessResult is not null and Exception is null.
If Exception is returned then SuccessResult is null and Exception is not null.
If TimeOut is returned then SuccessResult and Exception are both null.
SuccessResult
Gets the IQueryExecutionSuccessResult object if Status is true, else gets null.
IQueryExecutionSuccessResult SuccessResult { get; }