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 with the specified payment group identifier from the collection.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Remove ( _
paymentGroupId As Guid _
)
'Usage
Dim instance As PaymentMethodCollection
Dim paymentGroupId As Guid
instance.Remove(paymentGroupId)
public void Remove(
Guid paymentGroupId
)
public:
void Remove(
Guid paymentGroupId
)
public function Remove(
paymentGroupId : Guid
)
Parameters
- paymentGroupId
Type: System..::.Guid
The identifier of the PaymentMethod to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentException | A PaymentMethod with the specified paymentGroupId is not present 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.