Helper.ResolveToEmailName Method
Retrieves an e-mail name or a list of e-mail names of all users associated with the SharePoint Foundation web object found in the WorkflowContext.Web property.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function ResolveToEmailName ( _
context As WorkflowContext, _
username As String _
) As String
'Usage
Dim context As WorkflowContext
Dim username As String
Dim returnValue As String
returnValue = Helper.ResolveToEmailName(context, _
username)
public static string ResolveToEmailName(
WorkflowContext context,
string username
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextWorkflowContext object that contains properties that are associated with the active workflow instance.
username
Type: System.StringA string that represents the user logon name.
Return Value
Type: System.String
A list of semicolon delimited e-mail addresses.
Remarks
If the WorkflowContext object provided as the context parameter is a null reference (Nothing in Visual Basic), then the ResolveToEmailName method trims the user name and returns it to the caller.
If a distribution group alias is provided for the username parameter, all members of the distribution group are returned in a semicolon delimited list of e-mail addresses.