Share via


IndexOf Method

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

Returns the index of the ShippingDiscountRecord with the specified identifier.

Overload List

  Name Description
Aa530626.pubmethod(en-US,CS.70).gif IndexOf(Int32) Returns the index of the ShippingDiscountRecord with the specified discount identifier.
Aa530626.pubmethod(en-US,CS.70).gif IndexOf(ShippingDiscountRecord) Returns the index of the ShippingDiscountRecord with the specified discount.

Top

Remarks

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

See Also

Reference

ShippingDiscountCollection Class

ShippingDiscountCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace