DocumentExtensions.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.
Saves the contents of a DocumentSnapshot.
public static System.Threading.Tasks.Task SaveAsync (this Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot document, Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility extensibility, System.Threading.CancellationToken token);
static member SaveAsync : Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot * Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SaveAsync (document As DocumentSnapshot, extensibility As VisualStudioExtensibility, token As CancellationToken) As Task
Parameters
- document
- DocumentSnapshot
The document to save.
- extensibility
- VisualStudioExtensibility
Extensibility object.
- token
- CancellationToken
The cancellation token.
Returns
A Task.representing the asynchronous operation.