FileContextActionCallback Constructor
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.
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
- callback
- Func<IProgress<IFileContextActionProgressUpdate>,CancellationToken,Task<IFileContextActionResult>>
Callback to invoke
- displayName
- String
The display name of this action