Share via


WorkspacesExtensibility.QueryProjectsAsync<T> Method

Definition

Performs an asynchronous query on project items.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<T>> QueryProjectsAsync<T>(Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<T>> queryFunc, System.Threading.CancellationToken cancellationToken);

Type Parameters

T

Type of the object being queried.

Parameters

queryFunc
Func<IAsyncQueryable<IProjectSnapshot>,IAsyncQueryable<T>>

Function to prepare query.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

Results of the project query.

Exceptions

Thrown when query execution is failed.

Applies to