Remove Method (PaymentMethod)
Removes the specified PaymentMethod from the collection.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Remove ( _
paymentMethod As PaymentMethod _
)
'Usage
Dim instance As PaymentMethodCollection
Dim paymentMethod As PaymentMethod
instance.Remove(paymentMethod)
public void Remove(
PaymentMethod paymentMethod
)
public:
void Remove(
PaymentMethod^ paymentMethod
)
public function Remove(
paymentMethod : PaymentMethod
)
Parameters
- paymentMethod
Type: Microsoft.CommerceServer.Orders..::.PaymentMethod
The PaymentMethod to be removed. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | PaymentMethod is nullNothingnullptra null reference (Nothing in Visual Basic). |
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.