IAsyncDocView.LoadDocViewAsync 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.
Asynchronously loads a document view.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.LoadDocViewResult> LoadDocViewAsync (IProgress<Microsoft.VisualStudio.Shell.LoadDocViewProgress> progress, Microsoft.VisualStudio.Shell.LoadDocumentViewContext context, System.Threading.CancellationToken cancellationToken);
abstract member LoadDocViewAsync : IProgress<Microsoft.VisualStudio.Shell.LoadDocViewProgress> * Microsoft.VisualStudio.Shell.LoadDocumentViewContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.LoadDocViewResult>
Public Function LoadDocViewAsync (progress As IProgress(Of LoadDocViewProgress), context As LoadDocumentViewContext, cancellationToken As CancellationToken) As Task(Of LoadDocViewResult)
Parameters
- progress
- IProgress<LoadDocViewProgress>
An object used to report progress to the user.
- context
- LoadDocumentViewContext
The document context.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
An object that represents the result of the loaded document view.