Compartir a través de


FileContextActionCallback Constructor

Definition

Initializes a new instance of the FileContextActionCallback class.

public:
 FileContextActionCallback(Microsoft::VisualStudio::Workspace::FileContext ^ source, Func<IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^, System::Threading::CancellationToken, System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^> ^ callback, System::String ^ displayName);
public FileContextActionCallback (Microsoft.VisualStudio.Workspace.FileContext source, Func<IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate>,System.Threading.CancellationToken,System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> callback, string displayName);
new Microsoft.VisualStudio.Workspace.FileContextActionCallback : Microsoft.VisualStudio.Workspace.FileContext * Func<IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate>, System.Threading.CancellationToken, System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> * string -> Microsoft.VisualStudio.Workspace.FileContextActionCallback
Public Sub New (source As FileContext, callback As Func(Of IProgress(Of IFileContextActionProgressUpdate), CancellationToken, Task(Of IFileContextActionResult)), displayName As String)

Parameters

source
FileContext

The source context

displayName
String

The display name of this action

Applies to