DocumentsExtensibility.GetOpenDocumentsAsync(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 a collection of the documents that are currently open.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot>> GetOpenDocumentsAsync (System.Threading.CancellationToken token);
member this.GetOpenDocumentsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot>>
Public Function GetOpenDocumentsAsync (token As CancellationToken) As Task(Of IReadOnlyList(Of DocumentSnapshot))
Parameters
- token
- CancellationToken
The cancellation token.
Returns
A collection of open documents.