IndexOf Method

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

Returns the index of the PromoCodeRecord with the specified identifier.

Overload List

  Name Description
Aa530598.pubmethod(en-US,CS.70).gif IndexOf(Int32) Returns the zero based index of the PromoCodeRecord specified by the identifier.
Aa530598.pubmethod(en-US,CS.70).gif IndexOf(PromoCodeRecord) Returns the zero based index of the PromoCodeRecord specified by the PromoCodeRecord.

Top

Remarks

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

See Also

Reference

PromoCodeRecordCollection Class

PromoCodeRecordCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace