Contact.FromSharePointUserString method (String, SPWeb)
Gets a Contact object, given a SharePoint user string.
Namespace: Microsoft.Office.Workflow.Utility
Assembly: Microsoft.Office.Workflow.Tasks (in Microsoft.Office.Workflow.Tasks.dll)
Syntax
'Declaration
Public Shared Function FromSharePointUserString ( _
strId As String, _
web As SPWeb _
) As Contact
'Usage
Dim strId As String
Dim web As SPWeb
Dim returnValue As Contact
returnValue = Contact.FromSharePointUserString(strId, _
web)
public static Contact FromSharePointUserString(
string strId,
SPWeb web
)
Parameters
strId
Type: System.StringSharePoint user string, for example, "1;# ".
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 some of the members in the Contact class, see the example in ExpandGroups method.