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
- orderGroup
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderGroup
The OrderGroup to return the index of. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
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
- 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.