UserProfileService.GetUserPropertyByAccountName method

Gets the information about the specified property for the specified user.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserPropertyByAccountName", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetUserPropertyByAccountName ( _
    accountName As String, _
    propertyName As String _
) As PropertyData
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim propertyName As String
Dim returnValue As PropertyData

returnValue = instance.GetUserPropertyByAccountName(accountName, _
    propertyName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserPropertyByAccountName", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public PropertyData GetUserPropertyByAccountName(
    string accountName,
    string propertyName
)

Parameters

Return value

Type: WebSvcUserProfileService.PropertyData
The information about the specified property of the specified user.

Exceptions

Exception Condition
SoapException

The information cannot be retrieved.

Remarks

This method gets the user profile by the specified account name, and retrieves the information about the specified property in the user profile.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace