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

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

See Also

Reference

PaymentMethodCollection Class

PaymentMethodCollection Members

Remove Overload

Microsoft.CommerceServer.Orders Namespace