Поделиться через


IndexOf Method (Shipment)

Returns the index of the Shipment with the specified shipment.

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

Syntax

'Declaration
Public Function IndexOf ( _
    shipment As Shipment _
) As Integer
'Usage
Dim instance As ShipmentCollection
Dim shipment As Shipment
Dim returnValue As Integer

returnValue = instance.IndexOf(shipment)
public int IndexOf(
    Shipment shipment
)
public:
int IndexOf(
    Shipment^ shipment
)
public function IndexOf(
    shipment : Shipment
) : int

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

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

Permissions

See Also

Reference

ShipmentCollection Class

ShipmentCollection Members

IndexOf Overload

Microsoft.CommerceServer.Runtime.Orders Namespace