PromoCodeStringCollection Constructor
Initializes a new instance of the PromoCodeStringCollection class with the specified parent order form.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
parentOrderForm As OrderForm _
)
'Usage
Dim parentOrderForm As OrderForm
Dim instance As New PromoCodeStringCollection(parentOrderForm)
public PromoCodeStringCollection(
OrderForm parentOrderForm
)
public:
PromoCodeStringCollection(
OrderForm^ parentOrderForm
)
public function PromoCodeStringCollection(
parentOrderForm : OrderForm
)
Parameters
- parentOrderForm
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderForm
The parent OrderForm instance for this collection.
Remarks
Manages a collection of Promotion Code strings. A Promotion Code string will always be associated with an OrderForm object.
This specialized class works with OrderForm to ensure changes made to the PromoCodes objects update the LastModified and LastModified date on the OrderForm and its parent OrderGroup.
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.
See Also
Reference
PromoCodeStringCollection Class