IndexOf Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Returns the index of the LineItem with the specified identifier.

Overload List

  Name Description
ms870945.pubmethod(en-US,CS.70).gif IndexOf(Guid) Returns the zero based index of the LineItem with the specified identifier.
ms870945.pubmethod(en-US,CS.70).gif IndexOf(LineItem) Returns the zero based index of the specified LineItem.
ms870945.pubmethod(en-US,CS.70).gif IndexOf(String, String, String) Returns the zero based index of the LineItem with the specified product catalog, product identifier, and product variant identifier.

Top

Remarks

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

See Also

Reference

LineItemCollection Class

LineItemCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace