Helper.ProcessStringField - Méthode

Récupère une chaîne qui représente la valeur d'une variable de flux de travail spécifié.

Espace de noms :  Microsoft.SharePoint.WorkflowActions
Assembly :  Microsoft.SharePoint.WorkflowActions (dans Microsoft.SharePoint.WorkflowActions.dll)

Syntaxe

'Déclaration
Public Shared Function ProcessStringField ( _
    str As String, _
    activity As Activity, _
    context As WorkflowContext _
) As String
'Utilisation
Dim str As String
Dim activity As Activity
Dim context As WorkflowContext
Dim returnValue As String

returnValue = Helper.ProcessStringField(str, _
    activity, context)
public static string ProcessStringField(
    string str,
    Activity activity,
    WorkflowContext context
)

Paramètres

  • str
    Type : System.String

    Chaîne qui contient le nom de la variable dont vous récupérez à partir de l'instance de workflow active.

Valeur renvoyée

Type : System.String
La valeur de la variable de flux de travail spécifié.

Remarques

Le champ str est similaire à une chaîne de format. SharePoint Foundation convertit le nom de la variable qui est fourni dans la correspondante activity.fieldName.

Exemples

Str = "Cher/Chère [% titlePrefix %] [lastName %], \r\n Nous souhaitons vous informer que vous avez déjà gagné un prix [% localCurrencySymbol %] [% randomLargeAmount %]! »

Voir aussi

Référence

Helper classe

Helper - Membres

Microsoft.SharePoint.WorkflowActions - Espace de noms