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
- paymentMethod
Type: Microsoft.CommerceServer.Orders..::.PaymentMethod
The PaymentMethod to retrieve the index.
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
- 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.