Share via


WorkspacesExtensibility.QuerySolutionAsync<T> Method

Definition

Performs an asynchronous query on solution items.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<T>> QuerySolutionAsync<T> (Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<T>> queryFunc, System.Threading.CancellationToken cancellationToken);
member this.QuerySolutionAsync : Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>, Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'T>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<'T>>
Public Function QuerySolutionAsync(Of T) (queryFunc As Func(Of IAsyncQueryable(Of ISolutionSnapshot), IAsyncQueryable(Of T)), cancellationToken As CancellationToken) As Task(Of IQueryResults(Of T))

Type Parameters

T

Type of the object being queried.

Parameters

queryFunc
Func<IAsyncQueryable<ISolutionSnapshot>,IAsyncQueryable<T>>

Function to prepare query.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

Results of the solution query.

Exceptions

Thrown when query execution is failed.

Applies to