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.
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
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the active workflow instance.
val
Type: System.ObjectAn 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 .