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.Tasks (in Microsoft.Office.Workflow.Tasks.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.StringThe Contact Selector XML string, starting with the first person tag.
web
Type: Microsoft.SharePoint.SPWebThe 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.