共用方式為


LogToHistoryListActivity.Execute Method

Called by the workflow run time to execute an activity.

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 ActivityExecutionStatus of the workflow task that is running, which determines whether the activity continues to be executed or transitions to the closed state.

Remarks

Use the ActivityExecutionContext method to get information about the activity and workflow that are currently running, and also to obtain services from the runtime environment.

The execution occurs synchronously, returning control to the caller when the activity is completed or when it reaches an intermediate state.

See Also

Reference

LogToHistoryListActivity Class

LogToHistoryListActivity Members

Microsoft.SharePoint.WorkflowActions Namespace