Share via


Item Property

Gets a DiscountItem from the collection, based upon the index.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    index As Integer _
) As DiscountItem
'Usage
Dim instance As DiscountItemCollection
Dim index As Integer
Dim value As DiscountItem

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

Parameters

Property Value

Type: Microsoft.CommerceServer.Runtime.Marketing..::.DiscountItem
The DiscountItem at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero or equal to or greater than Count

Remarks

Gets the DiscountItem object in the DiscountItemCollection collection with the specified index.

Permissions

See Also

Reference

DiscountItemCollection Class

DiscountItemCollection Members

Microsoft.CommerceServer.Runtime.Marketing Namespace