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 Shipment with the specified shipment identifier.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function IndexOf ( _
shipmentId As Guid _
) As Integer
'Usage
Dim instance As ShipmentCollection
Dim shipmentId As Guid
Dim returnValue As Integer
returnValue = instance.IndexOf(shipmentId)
public int IndexOf(
Guid shipmentId
)
public:
int IndexOf(
Guid shipmentId
)
public function IndexOf(
shipmentId : Guid
) : int
Parameters
- shipmentId
Type: System..::.Guid
The identifier of the Shipment to find.
Return Value
Type: System..::.Int32
The zero based index of the Shipment, specified by the identifier. The index of the entry, or -1 if not found.
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
- 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.