UserProfileManager.GetUserProfile method (String)

Gets the UserProfile object for the specified account name.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function GetUserProfile ( _
    strAccountName As String _
) As UserProfile
'Usage
Dim instance As UserProfileManager
Dim strAccountName As String
Dim returnValue As UserProfile

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

Parameters

  • strAccountName
    Type: System.String

    The account name of the user profile.

Return value

Type: Microsoft.Office.Server.UserProfiles.UserProfile
that represents a user profile.

See also

Reference

UserProfileManager class

UserProfileManager members

GetUserProfile overload

Microsoft.Office.Server.UserProfiles namespace