RemoveAt Method
Removes the specified Promocode string from the PromoCodeStringCollection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub RemoveAt ( _
index As Integer _
)
'Usage
Dim instance As PromoCodeStringCollection
Dim index As Integer
instance.RemoveAt(index)
public void RemoveAt(
int index
)
public:
virtual void RemoveAt(
int index
) sealed
public final function RemoveAt(
index : int
)
Parameters
- index
Type: System..::.Int32
The zero based index of the Promocode string to be removed.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The index is out of the range of the collection. |
Remarks
Use this method to remove the specified promo code string from the collection.
The indices of members of the collection with indices higher than index are each decreased by one. Indices are zero based. The collection Count is decremented.
Successfully calling Remove updates LastModified.
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