Helper.DynamicString Method (WorkflowContext, Activity, String)
Produces a string from the input string, based on a workflow context and workflow activity.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function DynamicString ( _
context As WorkflowContext, _
activity As Activity, _
str As String _
) As String
'Usage
Dim context As WorkflowContext
Dim activity As Activity
Dim str As String
Dim returnValue As String
returnValue = Helper.DynamicString(context, _
activity, str)
public static string DynamicString(
WorkflowContext context,
Activity activity,
string str
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the workflow instance.
activity
Type: System.Workflow.ComponentModel.ActivityThe workflow activity associated with the workflow instance.
str
Type: System.StringThe input string.
Return Value
Type: System.String
A string with the variables in the input string replaced by their values.
Remarks
The variables in the input string are of the format “[%var %]”, where var is the name of an activity field or property.