Partilhar via


PromoCodeDefinitionId Property

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

Gets or sets the Id of the PromoCodeDefinition associated with this discount.

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

Syntax

'Declaration
Public Property PromoCodeDefinitionId As Integer
'Usage
Dim instance As Discount
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. The default is 0.

Remarks

If set to 0, no PromoCodeDefinition will be associated with the discount.

Permissions

See Also

Reference

Discount Class

Discount Members

Microsoft.CommerceServer.Marketing Namespace