BuildFileContextActionWrapper.ExecuteWithTaskCanceledExceptionAsync Method
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.
Execute a callback and report a task cancelled exception
public:
static System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^ ExecuteWithTaskCanceledExceptionAsync(Func<System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^> ^ callback, Microsoft::VisualStudio::Workspace::Build::IBuildMessageService ^ buildMessageService, System::String ^ projectFile);
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult> ExecuteWithTaskCanceledExceptionAsync (Func<System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> callback, Microsoft.VisualStudio.Workspace.Build.IBuildMessageService buildMessageService, string projectFile);
static member ExecuteWithTaskCanceledExceptionAsync : Func<System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> * Microsoft.VisualStudio.Workspace.Build.IBuildMessageService * string -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>
Public Shared Function ExecuteWithTaskCanceledExceptionAsync (callback As Func(Of Task(Of IFileContextActionResult)), buildMessageService As IBuildMessageService, projectFile As String) As Task(Of IFileContextActionResult)
Parameters
- callback
- Func<Task<IFileContextActionResult>>
Callback to execute
- buildMessageService
- IBuildMessageService
The build message service to report
- projectFile
- String
Project file to report
Returns
Completion task