Partager via


PromoCodeDefinitionId Property

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

Gets or sets the ID of the PromoCodeDefinitionId definition.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property PromoCodeDefinitionId As Integer
'Usage
Dim instance As DiscountApplicationRecordBase
Dim value As Integer

value = instance.PromoCodeDefinitionId

instance.PromoCodeDefinitionId = value
public int PromoCodeDefinitionId { get; set; }
public:
property int PromoCodeDefinitionId {
    int get ();
    void set (int value);
}
public function get PromoCodeDefinitionId () : int
public function set PromoCodeDefinitionId (value : int)

Property Value

Type: System..::.Int32
The Id of the PromoCodeDefinition to be associated with this discount.

Remarks

The PromoCodeDefinitionId is unique within an order form object. This ID relates to the marketing system. Discounts not associated with a PromoCodeDefinitionId are set to 0. PromoCodeDefinitionId is calculated during execution of the pipeline that contains the PromoCodeDefinitionId pipeline component. Typically, the basket pipeline contains this component.

Permissions

See Also

Reference

DiscountApplicationRecordBase Class

DiscountApplicationRecordBase Members

Microsoft.CommerceServer.Runtime.Orders Namespace