IndexOf Method (Guid)

Returns the zero based index of the Payment specified by the identifier.

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

Syntax

'Declaration
Public Function IndexOf ( _
    paymentId As Guid _
) As Integer
'Usage
Dim instance As PaymentCollection
Dim paymentId As Guid
Dim returnValue As Integer

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

Parameters

Return Value

Type: System..::.Int32
The zero based index of the Payment, specified by the identifier. The index of the entry, or -1 if not found.

Remarks

Searches for the specified Payment and returns the zero-based index of the first occurrence within the entire PaymentCollection. Returns -1 if the specified object is not found.

Permissions

See Also

Reference

PaymentCollection Class

PaymentCollection Members

IndexOf Overload

Microsoft.CommerceServer.Runtime.Orders Namespace