Partager via


UserProfileManager.GetUserProfile - Méthode (String)

Obtient l'objet UserProfile pour le nom du compte spécifié.

Espace de noms :  Microsoft.Office.Server.UserProfiles
Assembly :  Microsoft.Office.Server.UserProfiles (dans Microsoft.Office.Server.UserProfiles.dll)

Syntaxe

'Déclaration
Public Function GetUserProfile ( _
    strAccountName As String _
) As UserProfile
'Utilisation
Dim instance As UserProfileManager
Dim strAccountName As String
Dim returnValue As UserProfile

returnValue = instance.GetUserProfile(strAccountName)
public UserProfile GetUserProfile(
    string strAccountName
)

Paramètres

  • strAccountName
    Type : System.String

    Le nom du compte du profil utilisateur.

Valeur renvoyée

Type : Microsoft.Office.Server.UserProfiles.UserProfile
qui représente un profil utilisateur.

Voir aussi

Référence

UserProfileManager classe

UserProfileManager - Membres

GetUserProfile - Surcharge

Microsoft.Office.Server.UserProfiles - Espace de noms