RootWorkflowActivityWithData.HandleFault Method
Called when an exception is raised during the execution of the active workflow instance.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Protected Overrides Function HandleFault ( _
executionContext As ActivityExecutionContext, _
exception As Exception _
) As ActivityExecutionStatus
'Usage
Dim executionContext As ActivityExecutionContext
Dim exception As Exception
Dim returnValue As ActivityExecutionStatus
returnValue = Me.HandleFault(executionContext, _
exception)
protected override ActivityExecutionStatus HandleFault(
ActivityExecutionContext executionContext,
Exception exception
)
Parameters
executionContext
Type: System.Workflow.ComponentModel.ActivityExecutionContextThe ActivityExecutionContext that applies to this instance of the workflow.
exception
Type: System.ExceptionThe exception that caused this fault.
Return Value
Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The ActivityExecutionStatus that results from an attempt to cancel this instance of the workflow.
See Also
Reference
RootWorkflowActivityWithData Class