UpdateSiteTerm Method

Updates a site term in the server.

Namespace:  Microsoft.CommerceServer.Profiles
Assembly:  Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub UpdateSiteTerm ( _
    siteTermXml As XmlElement _
)
'Usage
Dim instance As ProfileManagementContext
Dim siteTermXml As XmlElement

instance.UpdateSiteTerm(siteTermXml)
public void UpdateSiteTerm(
    XmlElement siteTermXml
)
public:
void UpdateSiteTerm(
    XmlElement^ siteTermXml
)
public function UpdateSiteTerm(
    siteTermXml : XmlElement
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Any of the parameters provided is nullNothingnullptra null reference (Nothing in Visual Basic).

AuthenticationException

User has not been authenticated.

NotAuthorizedException

User is not authorized to perform this task.

SiteTermDoesNotExistException

The siteTermName specified does not exist.

DuplicateSiteTermNameException

A site term with the specified display name already exists.

DuplicateSiteTermValueException

The site term contains duplicate values.

StringLengthValidationException

A string property specified in profileXml is greater than 8,000 characters, or within the constraints specified by the MinLength and MaxLength profile definition custom attribute.

XmlException

The siteTermXml provided is not correctly formatted.

Remarks

The site term name cannot be changed through this method. If the name needs to be changed, the site term must be deleted and recreated.

Permissions

See Also

Reference

ProfileManagementContext Class

ProfileManagementContext Members

Microsoft.CommerceServer.Profiles Namespace