DocumentExtensions.SaveAsync Method

Definition

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.

Applies to