Partilhar via


FileContextActionBase Constructor

Definition

Initializes a new instance of the FileContextActionBase class.

public:
 FileContextActionBase(Func<IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^, System::Threading::CancellationToken, System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^> ^ callback);
public FileContextActionBase (Func<IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate>,System.Threading.CancellationToken,System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> callback);
new Microsoft.VisualStudio.Workspace.FileContextActionBase : Func<IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate>, System.Threading.CancellationToken, System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> -> Microsoft.VisualStudio.Workspace.FileContextActionBase
Public Sub New (callback As Func(Of IProgress(Of IFileContextActionProgressUpdate), CancellationToken, Task(Of IFileContextActionResult)))

Parameters

callback
Func<IProgress<IFileContextActionProgressUpdate>,CancellationToken,Task<IFileContextActionResult>>

Callback function to invoke when executing the action

Applies to