다음을 통해 공유


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

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

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace