Jaa


IndexOf Method (Int32)

Returns the index of the ShippingDiscountRecord with the specified discount identifier.

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

Syntax

'Declaration
Public Function IndexOf ( _
    discountId As Integer _
) As Integer
'Usage
Dim instance As ShippingDiscountCollection
Dim discountId As Integer
Dim returnValue As Integer

returnValue = instance.IndexOf(discountId)
public int IndexOf(
    int discountId
)
public:
int IndexOf(
    int discountId
)
public function IndexOf(
    discountId : int
) : int

Parameters

Return Value

Type: System..::.Int32
The zero-based index of the ShippingDiscountRecord with the specified DiscountId. The index of the entry, or -1 if not found.

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.

Permissions

See Also

Reference

ShippingDiscountCollection Class

ShippingDiscountCollection Members

IndexOf Overload

Microsoft.CommerceServer.Runtime.Orders Namespace