Partager via


PromoCodeReserved Property

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

Gets or sets a value that indicates the reservation for the current instance was successful.

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

Syntax

'Declaration
Public Property PromoCodeReserved As Boolean
'Usage
Dim instance As PromoCodeRecord
Dim value As Boolean

value = instance.PromoCodeReserved

instance.PromoCodeReserved = value
public bool PromoCodeReserved { get; set; }
public:
property bool PromoCodeReserved {
    bool get ();
    void set (bool value);
}
public function get PromoCodeReserved () : boolean
public function set PromoCodeReserved (value : boolean)

Property Value

Type: System..::.Boolean
true if the reservation was successful; otherwise, false.

Remarks

Stores a value that indicates the reservation for the current instance was successful. PromoCodeReserved is calculated during execution of the pipeline that contains the PromoCode Pipeline component. Typically, the Basket pipeline will contain this component.

PromoCodeReserved is ignored for invalid PromoCodes. To determine if a PromoCode is invalid, see PromoCodeStatus.

Permissions

See Also

Reference

PromoCodeRecord Class

PromoCodeRecord Members

Microsoft.CommerceServer.Runtime.Orders Namespace