Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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, _
ignoreitemkey As SPItemKey, _
fieldName As String _
) As String
'Usage
Dim context As WorkflowContext
Dim ignorestr As String
Dim ignoreitemkey As SPItemKey
Dim fieldName As String
Dim returnValue As String
returnValue = Helper.WILookupString(context, _
ignorestr, ignoreitemkey, fieldName)
public static string WILookupString(
WorkflowContext context,
string ignorestr,
SPItemKey ignoreitemkey,
string fieldName
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA WorkflowContext object that contains properties that are associated with the active workflow instance.
ignorestr
Type: System.StringA String that is ignored when returning results.
ignoreitemkey
Type: Microsoft.SharePoint.Workflow.SPItemKeyAn SPItemKey value that is ignored when returning results.
fieldName
Type: System.StringA String value that represents the desired field value to return.
Return Value
Type: System.String
The value of the field.