Partilhar via


IndexOf Method (PaymentMethod)

Returns the index of the specified payment method.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    paymentMethod As PaymentMethod _
) As Integer
'Usage
Dim instance As PaymentMethodCollection
Dim paymentMethod As PaymentMethod
Dim returnValue As Integer

returnValue = instance.IndexOf(paymentMethod)
public int IndexOf(
    PaymentMethod paymentMethod
)
public:
int IndexOf(
    PaymentMethod^ paymentMethod
)
public function IndexOf(
    paymentMethod : PaymentMethod
) : int

Parameters

Return Value

Type: System..::.Int32
The index of the PaymentMethod to locate.

Exceptions

Exception Condition
ArgumentNullException

paymentMethod is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Returns the index of the entry, or -1 if a PaymentMethod is not found in the collection.

Permissions

See Also

Reference

PaymentMethodCollection Class

PaymentMethodCollection Members

IndexOf Overload

Microsoft.CommerceServer.Orders Namespace