Compartir a través de


HandleExternalEventActivity.HandleFault Método

Definición

Llamado cuando se produce una excepción dentro del contexto de la ejecución de esta instancia.

protected:
 override System::Workflow::ComponentModel::ActivityExecutionStatus HandleFault(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext, Exception ^ exception);
protected override sealed System.Workflow.ComponentModel.ActivityExecutionStatus HandleFault (System.Workflow.ComponentModel.ActivityExecutionContext executionContext, Exception exception);
override this.HandleFault : System.Workflow.ComponentModel.ActivityExecutionContext * Exception -> System.Workflow.ComponentModel.ActivityExecutionStatus
Protected Overrides NotOverridable Function HandleFault (executionContext As ActivityExecutionContext, exception As Exception) As ActivityExecutionStatus

Parámetros

executionContext
ActivityExecutionContext

El objeto ActivityExecutionContext para esta instancia.

exception
Exception

Exception que provocó este error.

Devoluciones

ActivityExecutionStatus

ActivityExecutionStatus que se origina de un intento de cancelar esta instancia.

Excepciones

executionContext es una referencia nula (Nothing en Visual Basic).

O bien

exception es una referencia nula (Nothing en Visual Basic).

Se aplica a