DialogPage.DoCancelableOperationWithProgressUI Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ü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
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
- action
- Func<CancellationToken,Task>
- message
- String