Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the payment method at the specified index from the current collection.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Remove ( _
index As Integer _
)
'Usage
Dim instance As PaymentMethodCollection
Dim index As Integer
instance.Remove(index)
public void Remove(
int index
)
public:
void Remove(
int index
)
public function Remove(
index : int
)
Parameters
- index
Type: System..::.Int32
Index of the PaymentMethod to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | An element with the specified index does not exist in the collection. |
Remarks
Removes a specified PaymentMethod from the collection. When a PaymentMethod is removed from the collection, all subsequent PaymentMethod objects move up one index in the collection and the collection count is decremented.
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.