Share via


AddListItemPermissionsActivity.Execute Method

Ensures the item is not locked before it is updated.

Namespace:  Microsoft.SharePoint.WorkflowActions.WithKey
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Protected Overrides Function Execute ( _
    provider As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim provider As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus

returnValue = Me.Execute(provider)
protected override ActivityExecutionStatus Execute(
    ActivityExecutionContext provider
)

Parameters

Return Value

Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity.

Remarks

The workflow runtime calls this override to ensure that the item is not locked before DoUpdate(ActivityExecutionContext) is called.

See Also

Reference

AddListItemPermissionsActivity Class

AddListItemPermissionsActivity Members

Microsoft.SharePoint.WorkflowActions.WithKey Namespace