Partager via


UpdateProfile Method

Updates an existing profile instance in the profile system.

Namespace:  Microsoft.CommerceServer.Profiles.WebService
Assembly:  Microsoft.CommerceServer.Profiles.DataManagement (in Microsoft.CommerceServer.Profiles.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function UpdateProfile ( _
    ByRef profileXml As XmlElement, _
    forceOverwrite As Boolean, _
    inAdapterContext As Boolean _
) As ProfileOperationResponse
'Usage
Dim instance As ProfilesWebService
Dim profileXml As XmlElement
Dim forceOverwrite As Boolean
Dim inAdapterContext As Boolean
Dim returnValue As ProfileOperationResponse

returnValue = instance.UpdateProfile(profileXml, _
    forceOverwrite, inAdapterContext)
[WebMethodAttribute]
public virtual ProfileOperationResponse UpdateProfile(
    ref XmlElement profileXml,
    bool forceOverwrite,
    bool inAdapterContext
)
[WebMethodAttribute]
public:
virtual ProfileOperationResponse^ UpdateProfile(
    XmlElement^% profileXml, 
    bool forceOverwrite, 
    bool inAdapterContext
)
public function UpdateProfile(
    profileXml : XmlElement, 
    forceOverwrite : boolean, 
    inAdapterContext : boolean
) : ProfileOperationResponse

Parameters

  • forceOverwrite
    Type: System..::.Boolean
    If true, no optimistic lock check will be made before performing the update.
  • inAdapterContext
    Type: System..::.Boolean
    Indicates whether the call is coming from the adapter.

Return Value

Type: Microsoft.CommerceServer.Profiles..::.ProfileOperationResponse
An object describing the profile that was update.

Remarks

Updates an existing profile instance in the profile system. This API makes optimistic locking checks to prevent changes made by one user from being overwritten by another. Use forceOverwrite to prevent overwriting the object in the database. This will raise an exception if set to false and the record was modified in the database after it was loaded for editing.

Permissions

See Also

Reference

ProfilesWebService Class

ProfilesWebService Members

Microsoft.CommerceServer.Profiles.WebService Namespace