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
- name
Type: System.String
Logon name of the user.
- web
Type: Microsoft.SharePoint.SPWeb
The Web site to look for the user.
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.