Share via


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

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.

See also

Reference

SetCustomWorkflowStatus class

SetCustomWorkflowStatus members

Microsoft.SharePoint.WorkflowActions namespace