Item Property
Gets a Shipment from the current collection, based upon the specified index.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As Shipment
'Usage
Dim instance As ShipmentCollection
Dim index As Integer
Dim value As Shipment
value = instance.Item(index)
public Shipment Item[
int index
] { get; }
public:
property Shipment^ Item[int index] {
Shipment^ get (int index);
}
JScript does not support indexed properties.
Parameters
- index
Type: System..::.Int32
The zero-based index of the Shipment.
Property Value
Type: Microsoft.CommerceServer.Runtime.Orders..::.Shipment
The Shipment of the provided index or nullNothingnullptra null reference (Nothing in Visual Basic) if no such item exists.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is out of range of the available Shipment objects. |
Remarks
Returns the Shipment object from the current collection with the specified index or nullNothingnullptra null reference (Nothing in Visual Basic) if no such payment exists.
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.