Share via


IDocumentService.GetOpenDocumentAsync(Uri, CancellationToken) Method

Definition

Returns the open document corresponding to moniker.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot?> GetOpenDocumentAsync (Uri moniker, System.Threading.CancellationToken token);
abstract member GetOpenDocumentAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot>
Public Function GetOpenDocumentAsync (moniker As Uri, token As CancellationToken) As Task(Of DocumentSnapshot)

Parameters

moniker
Uri

The moniker of the document to search for.

token
CancellationToken

The cancellation token.

Returns

The matching document, or null if a matching document isn't found.

Applies to