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