Partilhar 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