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
- siteTermXml
Type: System.Xml..::.XmlElement
XML representing the site term to update.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ProfileManagementContext Class