Table of Contents

Interface IQueryExecutionResult

Namespace
NDepend.CodeQuery
Assembly
NDepend.API.dll

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

Exception

ExecutionDuration

Gets the query execution duration.

TimeSpan ExecutionDuration { get; }

Property Value

TimeSpan

OriginalQueryString

Gets the query string compiled and then executed to obtain this execution result.

string OriginalQueryString { get; }

Property Value

string

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

QueryExecutionStatus

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; }

Property Value

IQueryExecutionSuccessResult