Profile.Update (String, ProfileXmlFormat) Method (BCL)

Use this method to update the profile object with the property values specified in the xmlData parameter.

Definition

[Visual Basic .NET]

Public Sub Update( _ByValxmlData As System.String, _
  ByValxmlFormat As ProfileXmlFormat _
) 

[C#]

public void Update(System.StringxmlData,
  ProfileXmlFormatxmlFormat);

Parameters

[Visual Basic .NET]

  • xmlData
    The XML string containing the updated property values.
  • xmlFormat
    ProfileXmlFormat class determining whether in element centric or attribute centric format.

[C#]

  • xmlData
    The XML string containing the updated property values.
  • xmlFormat
    ProfileXmlFormat class determining whether in element centric or attribute centric format.

Remarks

Use the Update() method to commit the property changes made by the Update(String, ProfileXMLFormat) method to the data store.

If the Update method is called on a new profile object created using the CreateProfile method and the profile already exists in the profile store, then a CommerceProfileAlreadyExists exception is raised.

In case of other errors, this method raises a CommerceProfileSystemException exception that wraps an inner COMException. The Message and ErrorCode properties of the inner COMException contain details on the specific error that occurred.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Profiles

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Code to Build a Login Page

Code to Create and Set Profile Properties

Code to Retrieve and Display Profile Properties

Code to Use the SiteTerm Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.