IndexOf Method (Guid)

Returns the zero based index of the OrderGroup, specified by the identifier.

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

Syntax

'Declaration
Public Function IndexOf ( _
    orderGroupId As Guid _
) As Integer
'Usage
Dim instance As OrderGroupCollection
Dim orderGroupId As Guid
Dim returnValue As Integer

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

Parameters

Return Value

Type: System..::.Int32
Te zero based index of the OrderGroup, specified by the identifier.

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