Partilhar via


IndexOf Method (OrderGroup)

Returns the zero based index of the OrderGroup, specified by the order group.

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

Syntax

'Declaration
Public Function IndexOf ( _
    orderGroup As OrderGroup _
) As Integer
'Usage
Dim instance As OrderGroupCollection
Dim orderGroup As OrderGroup
Dim returnValue As Integer

returnValue = instance.IndexOf(orderGroup)
public int IndexOf(
    OrderGroup orderGroup
)
public:
int IndexOf(
    OrderGroup^ orderGroup
)
public function IndexOf(
    orderGroup : OrderGroup
) : int

Parameters

Return Value

Type: System..::.Int32
The zero based index of the specified OrderGroup, or -1 if the address is not found.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

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

Permissions

See Also

Reference

OrderGroupCollection Class

OrderGroupCollection Members

IndexOf Overload

Microsoft.CommerceServer.Runtime.Orders Namespace