UpdateExtensions.SaveAsync 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.
Overloads
SaveAsync(IAsyncQueryable<IProjectSnapshot>, CancellationToken) |
Saves projects to disk. |
SaveAsync(IAsyncQueryable<ISolutionSnapshot>, CancellationToken) |
Saves solutions to disk. |
SaveAsync(IProjectSnapshot, CancellationToken) |
Saves a single project to disk. |
SaveAsync(ISolutionSnapshot, CancellationToken) |
Saves the solution to disk. |
SaveAsync(IAsyncQueryable<IProjectSnapshot>, CancellationToken)
Saves projects to disk.
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>> SaveAsync (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, System.Threading.CancellationToken cancellationToken);
static member SaveAsync : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>>
<Extension()>
Public Function SaveAsync (projects As IAsyncQueryable(Of IProjectSnapshot), cancellationToken As CancellationToken) As Task(Of IQueryResults(Of IProjectSnapshot))
Parameters
- projects
- IAsyncQueryable<IProjectSnapshot>
A set of projects to be saved.
- cancellationToken
- CancellationToken
A cancellation token to abort the operation.
Returns
A task to complete when the operation is done, and returns the set of projects to be saved.
Applies to
SaveAsync(IAsyncQueryable<ISolutionSnapshot>, CancellationToken)
Saves solutions to disk.
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>> SaveAsync (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot> solutions, System.Threading.CancellationToken cancellationToken);
static member SaveAsync : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>>
<Extension()>
Public Function SaveAsync (solutions As IAsyncQueryable(Of ISolutionSnapshot), cancellationToken As CancellationToken) As Task(Of IQueryResults(Of ISolutionSnapshot))
Parameters
- solutions
- IAsyncQueryable<ISolutionSnapshot>
A collection of solutions.
- cancellationToken
- CancellationToken
A cancellation token to abort the operation.
Returns
A task to complete when the operation is done, and returns the set of solutions to be saved.
Applies to
SaveAsync(IProjectSnapshot, CancellationToken)
Saves a single project to disk.
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>> SaveAsync (this Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot project, System.Threading.CancellationToken cancellationToken);
static member SaveAsync : Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>>
<Extension()>
Public Function SaveAsync (project As IProjectSnapshot, cancellationToken As CancellationToken) As Task(Of IQueryResults(Of IProjectSnapshot))
Parameters
- project
- IProjectSnapshot
A project to be saved.
- cancellationToken
- CancellationToken
A cancellation token to abort the operation.
Returns
A task to finish when the project is saved.
Applies to
SaveAsync(ISolutionSnapshot, CancellationToken)
Saves the solution to disk.
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>> SaveAsync (this Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot solution, System.Threading.CancellationToken cancellationToken);
static member SaveAsync : Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>>
<Extension()>
Public Function SaveAsync (solution As ISolutionSnapshot, cancellationToken As CancellationToken) As Task(Of IQueryResults(Of ISolutionSnapshot))
Parameters
- solution
- ISolutionSnapshot
Solution to be saved.
- cancellationToken
- CancellationToken
A cancellation token to abort the operation.
Returns
A task to finish when the solution is saved.