IDocumentService.GetOpenDocumentAsync(Uri, CancellationToken) 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.
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.