PeopleManager.GetUserProfilePropertyFor method

Gets a user profile property for the specified user.

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

Syntax

'Declaration
Public Function GetUserProfilePropertyFor ( _
    accountName As String, _
    propertyName As String _
) As String
'Usage
Dim instance As PeopleManager
Dim accountName As String
Dim propertyName As String
Dim returnValue As String

returnValue = instance.GetUserProfilePropertyFor(accountName, _
    propertyName)
public string GetUserProfilePropertyFor(
    string accountName,
    string propertyName
)

Parameters

  • accountName
    Type: System.String

    The account name of the target user.

  • propertyName
    Type: System.String

    The name of the property to get.

Return value

Type: System.String
The specified profile property for the specified user.

See also

Reference

PeopleManager class

PeopleManager members

Microsoft.Office.Server.UserProfiles namespace