DialogPage.DoCancelableOperationWithProgressUI Methode

Definition

Überlädt

DoCancelableOperationWithProgressUI(Action, String)

Führt einen Vorgang mit abbrechbaren Status-UI aus, wenn im UI-Thread aufgerufen wird, wenn das Options Dialogfeld geöffnet ist.

DoCancelableOperationWithProgressUI(Func<CancellationToken,Task>, String)

DoCancelableOperationWithProgressUI(Action, String)

Führt einen Vorgang mit abbrechbaren Status-UI aus, wenn im UI-Thread aufgerufen wird, wenn das Options Dialogfeld geöffnet ist.

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

Parameter

action
Action

Die aufzurufende Aktion. Sollte auslösen, wenn CancellationToken aktiviert ist.

message
String

Die Meldung, die in der Status-UI angezeigt werden soll.

Gibt zurück

Boolean

True, wenn der Vorgang erfolgreich abgeschlossen wurde. false, wenn er abgebrochen wurde.

Gilt für

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

Parameter

message
String

Gibt zurück

Boolean

Gilt für