다음을 통해 공유


Priority Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the priority of this discount.

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

Syntax

'Declaration
Public ReadOnly Property Priority As Integer
'Usage
Dim instance As Discount
Dim value As Integer

value = instance.Priority
public int Priority { get; }
public:
property int Priority {
    int get ();
}
public function get Priority () : int

Property Value

Type: System..::.Int32
A value indicating the priority of the discount.

Remarks

When a discount is first saved, the Priority of the discount must be 0. After the save has completed, Priority is set to the one higher than the highest priority in the database. It can then be altered through PrioritizeDiscount or UpdateDiscountPriorities. Discounts are applied in the order from the lowest priority (first) to the highest priority (last) in numerical number. Priority value must be greater than or equal to zero.

Permissions

See Also

Reference

Discount Class

Discount Members

Microsoft.CommerceServer.Marketing Namespace