Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the information about the specified property for the specified user.
Namespace: [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx
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
accountName
Type: System.StringThe account name of the user.
propertyName
Type: System.StringThe name of the property.
Return Value
Type: [UserProfileService Web service].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.