Activity.HandleFault(ActivityExecutionContext, Exception) 메서드

정의

이 인스턴스의 실행 컨텍스트 내에서 예외가 발생할 때 호출됩니다.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

매개 변수

executionContext
ActivityExecutionContext

이 인스턴스에 대한 ActivityExecutionContext입니다.The ActivityExecutionContext for this instance.

exception
Exception

이 오류를 발생시킨 Exception입니다.The Exception that caused this fault.

반환

이 인스턴스를 취소할 때 발생하는 ActivityExecutionStatus입니다.The ActivityExecutionStatus that results from an attempt to cancel this instance.

예외

executionContext이 null 참조(Visual Basic의 경우 Nothing)인 경우executionContext is a null reference (Nothing in Visual Basic).

또는-or-

exception이 null 참조(Visual Basic의 경우 Nothing)인 경우exception is a null reference (Nothing in Visual Basic).

설명

기본 메서드는 Cancel 메서드를 호출 하 고이 시도의 결과를 반환 하려고 합니다.The default method tries to call the Cancel method and returns the result of this attempt.

적용 대상