Share via


Helper.EmailAddressAsText method

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

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 .

See also

Reference

Helper class

Helper members

Microsoft.SharePoint.WorkflowActions namespace