Share via


Helper.DisplayNameAsText method

Retrieves and returns the display name of a user based on the specified user login name.

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

Syntax

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

returnValue = Helper.DisplayNameAsText(context, _
    val)
public static string DisplayNameAsText(
    WorkflowContext context,
    Object val
)

Parameters

  • val
    Type: System.Object

    An object that contains the user login name.

Return value

Type: System.String
The display name.

Remarks

This method returns the user login name if the display name cannot be retrieved, or the empty string if the val is null .

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace