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
name
Type: System.StringName of the user.
email
Type: System.StringE-mail address of the user.
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.