Contact.FromName method (String, SPWeb)
Gets a Contact object, given the name of a user.
Namespace: Microsoft.Office.Workflow.Utility
Assembly: Microsoft.Office.Workflow.Tasks (in Microsoft.Office.Workflow.Tasks.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.StringLogon name of the user.
web
Type: Microsoft.SharePoint.SPWebThe 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.