Compartilhar via


WorkspacesExtensibility.QueryProjectsByCapabilitiesAsync<T> Method

Definition

Performs an asynchronous query on projects matching a specific capabilities condition expression.

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

Type Parameters

T

Type of the object being queried.

Parameters

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

Function to prepare query.

applyToExpression
String

Capabilities condition string.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

Results of the project query.

Exceptions

Thrown when query execution is failed.

Applies to