共用方式為


CoerceActivity.Execute Method

Coerces a specified workflow data type into another data type.

Namespace:  Microsoft.SharePoint.WorkflowActions
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 coerce the value specified by the Value property into the new data type using the function specified by the CoercionFunction property.

This override always returns Closed.

See Also

Reference

CoerceActivity Class

CoerceActivity Members

Microsoft.SharePoint.WorkflowActions Namespace