Share via


Helper.WILookupString method (WorkflowContext, String, Int32, String)

Looks up the specified field in the given workflow context object and returns it if it is a String. Otherwise, it returns the result of the ToString() method. The results exclude what is specified in the ignorestr and ignoreitemkey parameters.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function WILookupString ( _
    context As WorkflowContext, _
    ignorestr As String, _
    ignoreint As Integer, _
    fieldName As String _
) As String
'Usage
Dim context As WorkflowContext
Dim ignorestr As String
Dim ignoreint As Integer
Dim fieldName As String
Dim returnValue As String

returnValue = Helper.WILookupString(context, _
    ignorestr, ignoreint, fieldName)
public static string WILookupString(
    WorkflowContext context,
    string ignorestr,
    int ignoreint,
    string fieldName
)

Parameters

  • ignoreint
    Type: System.Int32

    An Int32 value that should be ignored when returning results.

  • fieldName
    Type: System.String

    A String value that represents the desired field value to return.

Return value

Type: System.String
The value of the field.

See also

Reference

Helper class

Helper members

WILookupString overload

Microsoft.SharePoint.WorkflowActions namespace