Dijeli putem


IndexOf Method (ShippingDiscountRecord)

Returns the index of the ShippingDiscountRecord with the specified discount.

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

Syntax

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

returnValue = instance.IndexOf(shippingDiscountRecord)
public int IndexOf(
    ShippingDiscountRecord shippingDiscountRecord
)
public:
int IndexOf(
    ShippingDiscountRecord^ shippingDiscountRecord
)
public function IndexOf(
    shippingDiscountRecord : ShippingDiscountRecord
) : int

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

shippingDiscountRecord is nullNothingnullptra null reference (Nothing in Visual Basic).

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