Partager via


IndexOf Method (Guid)

Returns the index of the payment method with the specified identifier.

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

Syntax

'Declaration
Public Function IndexOf ( _
    paymentGroupId As Guid _
) As Integer
'Usage
Dim instance As PaymentMethodCollection
Dim paymentGroupId As Guid
Dim returnValue As Integer

returnValue = instance.IndexOf(paymentGroupId)
public int IndexOf(
    Guid paymentGroupId
)
public:
int IndexOf(
    Guid paymentGroupId
)
public function IndexOf(
    paymentGroupId : Guid
) : int

Parameters

Return Value

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

Remarks

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

Permissions

See Also

Reference

PaymentMethodCollection Class

PaymentMethodCollection Members

IndexOf Overload

Microsoft.CommerceServer.Orders Namespace