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
provider
Type: System.Workflow.ComponentModel.ActivityExecutionContextThe execution environment that is associated with this Activity.
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.