Partilhar via


DialogPage.DoCancelableOperationWithProgressUI Method

Definition

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

message
String

Returns

Applies to