Delen via


IAsyncDocView.LoadDocViewAsync Method

Definition

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.

Applies to