SetCustomWorkflowStatus.Execute Method
Sets the workflow to the specified status.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Protected Overrides Function Execute ( _
context As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim context As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus
returnValue = Me.Execute(context)
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext context
)
Parameters
context
Type: System.Workflow.ComponentModel.ActivityExecutionContextThe context that is associated with the activity.
Return Value
Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity.
Remarks
The workflow runtime calls this override to set the workflow to the specified status.
This override sets the workflow to the workflow status specified by the WorkflowStatus property. It always returns Closed.