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 email of a user address 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 EmailAddressAsText ( _
context As WorkflowContext, _
val As Object _
) As String
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As String
returnValue = Helper.EmailAddressAsText(context, _
val)
public static string EmailAddressAsText(
WorkflowContext context,
Object val
)
Parameters
context
Type: Microsoft.SharePoint.WorkflowActions.WorkflowContextA workflow context that contains properties that are associated with the workflow instance.
val
Type: System.ObjectThe user login name.
Return Value
Type: System.String
An email address.
Remarks
The return value is either an email address, a list of semicolon-delimited email addresses if a distribution group alias is provided for the val parameter, the user login name if the context is null , or an empty string if the val is null .