Share via


Helper.ResolveToDisplayName method

Retrieves the display name of a user that is contained in a SharePoint Foundation user field.

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

Syntax

'Declaration
Public Shared Function ResolveToDisplayName ( _
    context As WorkflowContext, _
    userNameObj As Object _
) As String
'Usage
Dim context As WorkflowContext
Dim userNameObj As Object
Dim returnValue As String

returnValue = Helper.ResolveToDisplayName(context, _
    userNameObj)
public static string ResolveToDisplayName(
    WorkflowContext context,
    Object userNameObj
)

Parameters

  • userNameObj
    Type: System.Object

    An object that represents the value of a SPFieldType.User field.

Return value

Type: System.String
The display name of the user.

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace