Contact.ToContacts Method (String, SPWeb)
Parses contacts from a string of XML and creates an array of Contact objects from the hash table.
Namespace: Microsoft.Office.Workflow.Utility
Assembly: Microsoft.Office.Workflow.Pages (in Microsoft.Office.Workflow.Pages.dll)
Syntax
'Declaration
Public Shared Function ToContacts ( _
inputXml As String, _
web As SPWeb _
) As Contact()
'Usage
Dim inputXml As String
Dim web As SPWeb
Dim returnValue As Contact()
returnValue = Contact.ToContacts(inputXml, _
web)
public static Contact[] ToContacts(
string inputXml,
SPWeb web
)
Parameters
- inputXml
Type: System.String
The Contact Selector XML string, starting with the first person tag.
- web
Type: Microsoft.SharePoint.SPWeb
The Web site to look for the users.
Return Value
Type: []
An array that stores the results parsed by this method.
Remarks
For an example of how to use the ToContacts method, see the example in ExpandGroups method.