Compartir a través de


DocumentExtensions.CloseAsync Method

Definition

Closes the view(s) for a DocumentSnapshot.

public static System.Threading.Tasks.Task CloseAsync (this Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot document, Microsoft.VisualStudio.RpcContracts.Documents.SaveDocumentOption option, Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility extensibility, System.Threading.CancellationToken token);
static member CloseAsync : Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot * Microsoft.VisualStudio.RpcContracts.Documents.SaveDocumentOption * Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function CloseAsync (document As DocumentSnapshot, option As SaveDocumentOption, extensibility As VisualStudioExtensibility, token As CancellationToken) As Task

Parameters

document
DocumentSnapshot

The document to close.

option
SaveDocumentOption

An option controlling if and how the document will be saved, if it has unsaved changes.

extensibility
VisualStudioExtensibility

Extensibility object.

token
CancellationToken

The cancellation token.

Returns

A Task.representing the asynchronous operation.

Applies to