DialogPage.DoCancelableOperationWithProgressUI Método

Definição

Sobrecargas

DoCancelableOperationWithProgressUI(Action, String)

Executa uma operação com a interface do usuário de progresso cancelável se for invocada no thread da interface do usuário quando a caixa de diálogo de opções estiver aberta.

DoCancelableOperationWithProgressUI(Func<CancellationToken,Task>, String)

DoCancelableOperationWithProgressUI(Action, String)

Executa uma operação com a interface do usuário de progresso cancelável se for invocada no thread da interface do usuário quando a caixa de diálogo de opções estiver aberta.

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

Parâmetros

action
Action

A ação a ser invocada. Deve gerar se CancellationToken está ativado.

message
String

A mensagem a ser mostrada na interface do usuário de progresso.

Retornos

Boolean

True se a operação for concluída com êxito; false se foi cancelado.

Aplica-se a

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

Parâmetros

message
String

Retornos

Boolean

Aplica-se a