Contact.FromName Method (String, SPWeb)

Gets a Contact object, given the name of a user.

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

Syntax

'Declaration
Public Shared Function FromName ( _
    name As String, _
    web As SPWeb _
) As Contact
'Usage
Dim name As String
Dim web As SPWeb
Dim returnValue As Contact

returnValue = Contact.FromName(name, _
    web)
public static Contact FromName(
    string name,
    SPWeb web
)

Parameters

Return Value

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

Remarks

For an example of how to use the FromName method, see the example in ExpandGroups method.

See Also

Reference

Contact Class

Contact Members

FromName Overload

Microsoft.Office.Workflow.Utility Namespace