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.StringThe account name of the target user.
propertyName
Type: System.StringThe name of the property to get.
Return value
Type: System.String
The specified profile property for the specified user.