Partilhar via


Helper.LookupUser Method (WorkflowContext, Guid, SPItemKey, String)

Retrieves the user login name for the specified list item.

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

Syntax

'Declaration
Public Shared Function LookupUser ( _
    context As WorkflowContext, _
    listId As Guid, _
    listItem As SPItemKey, _
    fieldName As String _
) As String
'Usage
Dim context As WorkflowContext
Dim listId As Guid
Dim listItem As SPItemKey
Dim fieldName As String
Dim returnValue As String

returnValue = Helper.LookupUser(context, _
    listId, listItem, fieldName)
public static string LookupUser(
    WorkflowContext context,
    Guid listId,
    SPItemKey listItem,
    string fieldName
)

Parameters

  • fieldName
    Type: System.String

    The name of the field in the specified list from which to retrieve a user login name.

Return Value

Type: System.String
A user login name that is retrieved from the specified filed of the specified list item.

Remarks

This method gets the user login name of the specified field for the specified item in the list.

This method returns null if the field cannot be found or the field type is not User.

See Also

Reference

Helper Class

Helper Members

LookupUser Overload

Microsoft.SharePoint.WorkflowActions Namespace