Share via


Contact.FromSharePointUserString Method (String, SPWeb)

Gets a Contact object, given a SharePoint user string.

Namespace:  Microsoft.Office.Workflow.Utility
Assembly:  Microsoft.Office.Workflow.Pages (in Microsoft.Office.Workflow.Pages.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.String
    SharePoint user string, for example, "1;# ".

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.

See Also

Reference

Contact Class

Contact Members

FromSharePointUserString Overload

Microsoft.Office.Workflow.Utility Namespace