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
- paymentGroupId
Type: System..::.Guid
Identifier of the PaymentMethod to retrieve the index.
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
- 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.