Helper.ResolveToUserName Method
Retrieves the user name of a SharePoint Foundation user when the e-mail address is supplied.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function ResolveToUserName ( _
context As WorkflowContext, _
emailAddress As String _
) As String
'Usage
Dim context As WorkflowContext
Dim emailAddress As String
Dim returnValue As String
returnValue = Helper.ResolveToUserName(context, _
emailAddress)
public static string ResolveToUserName(
WorkflowContext context,
string emailAddress
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
emailAddress
Type: System.StringAn e-mail address of a specified user.
Return Value
Type: System.String
The logon name of the user with the specified e-mail address.