Share via


ExtractSubstringFromIndexActivity.Execute method

Extracts a substring from a specified string at a given index.

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 extract a substring from the string specified by the StringVal property at the index specified by the Index property. It saves the resulting substring in the SubstringVariable property. It always returns Closed.

See also

Reference

ExtractSubstringFromIndexActivity class

ExtractSubstringFromIndexActivity members

Microsoft.SharePoint.WorkflowActions namespace