Activity.HandleFault(ActivityExecutionContext, Exception) Método

Definición

Llamado cuando se produce una excepción dentro del contexto de la ejecución de esta instancia.Called when an exception is raised within the context of the execution of this instance.

protected public:
 virtual System::Workflow::ComponentModel::ActivityExecutionStatus HandleFault(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext, Exception ^ exception);
protected internal virtual System.Workflow.ComponentModel.ActivityExecutionStatus HandleFault (System.Workflow.ComponentModel.ActivityExecutionContext executionContext, Exception exception);
abstract member HandleFault : System.Workflow.ComponentModel.ActivityExecutionContext * Exception -> System.Workflow.ComponentModel.ActivityExecutionStatus
override this.HandleFault : System.Workflow.ComponentModel.ActivityExecutionContext * Exception -> System.Workflow.ComponentModel.ActivityExecutionStatus
Protected Friend Overridable Function HandleFault (executionContext As ActivityExecutionContext, exception As Exception) As ActivityExecutionStatus

Parámetros

executionContext
ActivityExecutionContext

El objeto ActivityExecutionContext para esta instancia.The ActivityExecutionContext for this instance.

exception
Exception

Exception que provocó este error.The Exception that caused this fault.

Devoluciones

ActivityExecutionStatus

ActivityExecutionStatus que se origina de un intento de cancelar esta instancia.The ActivityExecutionStatus that results from an attempt to cancel this instance.

Excepciones

executionContext es una referencia nula (Nothing en Visual Basic).executionContext is a null reference (Nothing in Visual Basic).

O bien-or-

exception es una referencia nula (Nothing en Visual Basic).exception is a null reference (Nothing in Visual Basic).

Comentarios

El método predeterminado intenta llamar al método Cancel y devuelve el resultado de este intento.The default method tries to call the Cancel method and returns the result of this attempt.

Se aplica a