Contact.FromSharePointUserString - Méthode (String, SPWeb)
Obtient un objet Contact , en fonction d'une chaîne de l'utilisateur de SharePoint.
Espace de noms : Microsoft.Office.Workflow.Utility
Assembly : Microsoft.Office.Workflow.Tasks (dans Microsoft.Office.Workflow.Tasks.dll)
Syntaxe
'Déclaration
Public Shared Function FromSharePointUserString ( _
strId As String, _
web As SPWeb _
) As Contact
'Utilisation
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
)
Paramètres
strId
Type : System.StringChaîne d'utilisateur de SharePoint, par exemple, « 1; # ».
web
Type : Microsoft.SharePoint.SPWebLe site Web pour rechercher l'utilisateur.
Valeur renvoyée
Type : Microsoft.Office.Workflow.Utility.Contact
Un objet Contact pour l'utilisateur.
Remarques
Pour obtenir un exemple illustrant comment utiliser certaines des membres de la classe Contact , consultez l'exemple de méthode de ExpandGroups .