שתף באמצעות


PromoCodes Property

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

Gets one or more marketing system promotion codes entered by a customer.

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

Syntax

'Declaration
Public ReadOnly Property PromoCodes As PromoCodeStringCollection
'Usage
Dim instance As OrderForm
Dim value As PromoCodeStringCollection

value = instance.PromoCodes
public PromoCodeStringCollection PromoCodes { get; }
public:
property PromoCodeStringCollection^ PromoCodes {
    PromoCodeStringCollection^ get ();
}
public function get PromoCodes () : PromoCodeStringCollection

Property Value

Type: Microsoft.CommerceServer.Runtime.Orders..::.PromoCodeStringCollection
A PromoCodeStringCollection containing one or more marketing system promotion codes.

Remarks

The marketing system promotion code components never remove entries from this collection. It is up to the site code to do so if desired, such as when an invalid or expired code is entered.

To mitigate denial of service attacks, your site code should impose a limit on the size of this collection.

Permissions

See Also

Reference

OrderForm Class

OrderForm Members

Microsoft.CommerceServer.Runtime.Orders Namespace