UpdateDiscountPriorities Method
Updates the priorities of a set of discounts.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Sub UpdateDiscountPriorities ( _
discountPrioritySet As DiscountPrioritySet _
)
'Usage
Dim instance As MarketingWebService
Dim discountPrioritySet As DiscountPrioritySet
instance.UpdateDiscountPriorities(discountPrioritySet)
[WebMethodAttribute]
public virtual void UpdateDiscountPriorities(
DiscountPrioritySet discountPrioritySet
)
[WebMethodAttribute]
public:
virtual void UpdateDiscountPriorities(
DiscountPrioritySet^ discountPrioritySet
)
public function UpdateDiscountPriorities(
discountPrioritySet : DiscountPrioritySet
)
Parameters
- discountPrioritySet
Type: Microsoft.CommerceServer.Marketing..::.DiscountPrioritySet
A DataSet containing the updated DiscountPriorities. Inserts and deletes are not accepted.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The discountPrioritySet is less than zero. |
ArgumentNullException | The new priority value is invalid. |
NotAuthorizedException | The user is not authorized to perform the requested operation. |
EntityDoesNotExistException | One of the DiscountPriorities does not exist. |
EntityStateException | One of the DiscountPriorities is deleted, or active. |
DiscountPrioritizationException | One of the new priorities cannot be assigned. |
DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Saves the priority updates in a data set representing discount priorities.
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.