DialogPage.DoCancelableOperationWithProgressUI 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.
Overloads
DoCancelableOperationWithProgressUI(Action, String) |
Executes an operation with cancelable progress UI if invoked on the UI thread when the Options dialog is open. |
DoCancelableOperationWithProgressUI(Func<CancellationToken,Task>, String) |
DoCancelableOperationWithProgressUI(Action, String)
Executes an operation with cancelable progress UI if invoked on the UI thread when the Options dialog is open.
protected:
bool DoCancelableOperationWithProgressUI(Action ^ action, System::String ^ message);
protected bool DoCancelableOperationWithProgressUI (Action action, string message);
member this.DoCancelableOperationWithProgressUI : Action * string -> bool
Protected Function DoCancelableOperationWithProgressUI (action As Action, message As String) As Boolean
Parameters
- action
- Action
The action to invoke. Should throw if CancellationToken is activated.
- message
- String
The message to show in the progress UI.
Returns
True if the operation completed successfully; false if it was canceled.
Applies to
DoCancelableOperationWithProgressUI(Func<CancellationToken,Task>, String)
protected:
bool DoCancelableOperationWithProgressUI(Func<System::Threading::CancellationToken, System::Threading::Tasks::Task ^> ^ action, System::String ^ message);
protected bool DoCancelableOperationWithProgressUI (Func<System.Threading.CancellationToken,System.Threading.Tasks.Task> action, string message);
member this.DoCancelableOperationWithProgressUI : Func<System.Threading.CancellationToken, System.Threading.Tasks.Task> * string -> bool
Protected Function DoCancelableOperationWithProgressUI (action As Func(Of CancellationToken, Task), message As String) As Boolean
Parameters
- action
- Func<CancellationToken,Task>
- message
- String