Share via


DocumentsExtensibility.CloseDocumentAsync Method

Definition

Closes the tab(s) for the document specified by moniker.

public System.Threading.Tasks.Task CloseDocumentAsync (Uri moniker, Microsoft.VisualStudio.RpcContracts.Documents.SaveDocumentOption option, System.Threading.CancellationToken token);
member this.CloseDocumentAsync : Uri * Microsoft.VisualStudio.RpcContracts.Documents.SaveDocumentOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CloseDocumentAsync (moniker As Uri, option As SaveDocumentOption, token As CancellationToken) As Task

Parameters

moniker
Uri

The moniker of the document to search for.

option
SaveDocumentOption

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

token
CancellationToken

The cancellation token.

Returns

A Task representing the asynchronous operation.

Applies to