IndexOf Method (ShippingMethod)

Returns the index of the specified shipping method.

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

Syntax

'Declaration
Public Function IndexOf ( _
    shippingMethod As ShippingMethod _
) As Integer
'Usage
Dim instance As ShippingMethodCollection
Dim shippingMethod As ShippingMethod
Dim returnValue As Integer

returnValue = instance.IndexOf(shippingMethod)
public int IndexOf(
    ShippingMethod shippingMethod
)
public:
int IndexOf(
    ShippingMethod^ shippingMethod
)
public function IndexOf(
    shippingMethod : ShippingMethod
) : int

Parameters

Return Value

Type: System..::.Int32
The index of the ShippingMethod to locate.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

Returns the index of the entry, or -1 if a ShippingMethod with specified shipping method is not found in the collection.

Permissions

See Also

Reference

ShippingMethodCollection Class

ShippingMethodCollection Members

IndexOf Overload

Microsoft.CommerceServer.Orders Namespace