Partilhar via


Helper.ResolveUsernameOrNull Method

Ensures that the specified user login name or group name exists and returns it.

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

Syntax

'Declaration
Public Shared Function ResolveUsernameOrNull ( _
    context As WorkflowContext, _
    username As String _
) As String
'Usage
Dim context As WorkflowContext
Dim username As String
Dim returnValue As String

returnValue = Helper.ResolveUsernameOrNull(context, _
    username)
public static string ResolveUsernameOrNull(
    WorkflowContext context,
    string username
)

Parameters

  • username
    Type: System.String

    The user login name or the group name to be verified.

Return Value

Type: System.String
The user login name or group name.

Remarks

This method returns null if context is null , or the specified user login name or group name does not exist.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace