WorkspacesExtensibility.UpdateSolutionAsync<TUpdatable,TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs an asynchronous update on solutions hierarchy.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<TResult>> UpdateSolutionAsync<TUpdatable,TResult> (Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TUpdatable>> queryFunc, Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<TUpdatable>,Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<TResult>> updateFunc, System.Threading.CancellationToken cancellationToken) where TUpdatable : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
member this.UpdateSolutionAsync : Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>, Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Updatable>> * Func<Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<'Updatable>, Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<'Result>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<'Result>> (requires 'Updatable :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
Public Function UpdateSolutionAsync(Of TUpdatable As IEntity, TResult As IEntity) (queryFunc As Func(Of IAsyncQueryable(Of ISolutionSnapshot), IAsyncQueryable(Of TUpdatable)), updateFunc As Func(Of IAsyncUpdatable(Of TUpdatable), IAsyncUpdatable(Of TResult)), cancellationToken As CancellationToken) As Task(Of IQueryResults(Of TResult))
Type Parameters
- TUpdatable
Type of the object being returned as a result of the query selector.
- TResult
Type of the object being returned as a result of the update actions.
Parameters
- queryFunc
- Func<IAsyncQueryable<ISolutionSnapshot>,IAsyncQueryable<TUpdatable>>
Function to select items to update.
- updateFunc
- Func<IAsyncUpdatable<TUpdatable>,IAsyncUpdatable<TResult>>
Function to update selected items.
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
Task<IQueryResults<TResult>>
Results of the solution update actions.
Exceptions
Thrown when query execution is failed.