DocumentsExtensibility.CloseDocumentAsync 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.
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.