Share via


Contact.FromDisplayNameAndEmailAddress method (String, String)

Gets a Contact object for a user, given the user's display name and e-mail address.

Namespace:  Microsoft.Office.Workflow.Utility
Assembly:  Microsoft.Office.Workflow.Tasks (in Microsoft.Office.Workflow.Tasks.dll)

Syntax

'Declaration
Public Shared Function FromDisplayNameAndEmailAddress ( _
    name As String, _
    email As String _
) As Contact
'Usage
Dim name As String
Dim email As String
Dim returnValue As Contact

returnValue = Contact.FromDisplayNameAndEmailAddress(name, _
    email)
public static Contact FromDisplayNameAndEmailAddress(
    string name,
    string email
)

Parameters

Return value

Type: Microsoft.Office.Workflow.Utility.Contact
A Contact object for the user.

Remarks

For an example of how to use some of the members in the Contact class, see the example in ExpandGroups method.

See also

Reference

Contact class

Contact members

FromDisplayNameAndEmailAddress overload

Microsoft.Office.Workflow.Utility namespace