Compartilhar via


ImpersonationSequenceActivity.Execute Method

Runs a workflow instance in the context of a specified user role.

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

Syntax

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

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

Parameters

Return Value

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

Remarks

The workflow runtime calls this override to run a workflow instance in the context of a specified user role.

This override also runs the child activities of this activity in the same user role context.

This override throws an ArgumentNullException if the executionContext is null .

See Also

Reference

ImpersonationSequenceActivity Class

ImpersonationSequenceActivity Members

Microsoft.SharePoint.WorkflowActions Namespace