Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- shippingMethod
Type: Microsoft.CommerceServer.Orders..::.ShippingMethod
The ShippingMethod to retrieve the index.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ShippingMethodCollection Class