Share via


Item Property

Gets the LineItem object 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 LineItem
'Usage
Dim instance As LineItemCollection
Dim index As Integer
Dim value As LineItem

value = instance.Item(index)
public LineItem Item[
    int index
] { get; }
public:
property LineItem^ Item[int index] {
    LineItem^ get (int index);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.CommerceServer.Runtime.Orders..::.LineItem
A LineItem with the specified index, or nullNothingnullptra null reference (Nothing in Visual Basic) if no such item exists.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is outside the range of the collection.

Remarks

Gets the LineItem object in the LineItemCollection collection with the specified index.

Permissions

See Also

Reference

LineItemCollection Class

LineItemCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace