PromoCodeDefinitionId Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets the identifier of the promo code 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 PromoCodeRecord
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 identifier of the PromoCodeDefinition.
Remarks
Gets the identifier of the promo code definition. PromoCodeDefinitionId is unique within an OrderForm. This identifier relates back to the Marketing system.
PromoCodeDefinitionId is calculated during execution of the pipeline that contains the PromoCode Pipeline component. Typically, the Basket pipeline will contain this component.
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.