UserProfileService.ModifyUserPropertyByAccountName method

Modifies a user profile property for the specified account name.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/ModifyUserPropertyByAccountName", RequestNamespace := "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub ModifyUserPropertyByAccountName ( _
    accountName As String, _
    newData As PropertyData() _
)
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim newData As PropertyData()

instance.ModifyUserPropertyByAccountName(accountName, _
    newData)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/ModifyUserPropertyByAccountName", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void ModifyUserPropertyByAccountName(
    string accountName,
    PropertyData[] newData
)

Parameters

  • newData
    Type: []

    The new property name and values.

Exceptions

Exception Condition
SoapException

The properties for the user profile in newData cannot be changed or the user profile cannot be accessed.

Remarks

This method modifies the editable user profile properties with the new values for the specified account name.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace