IFileContextActionBase.ExecuteAsync Method

Definition

Executes the action.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^ ExecuteAsync(IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult> ExecuteAsync (IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>
Public Function ExecuteAsync (progress As IProgress(Of IFileContextActionProgressUpdate), cancellationToken As CancellationToken) As Task(Of IFileContextActionResult)

Parameters

progress
IProgress<IFileContextActionProgressUpdate>

A means to report progress as the action executes.

cancellationToken
CancellationToken

A token that may cancel the action.

Returns

A task whose result describes the result of the action.

Applies to