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)
'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.
- index
Type: System..::.Int32
The zero-based index of the element to get.
Type: Microsoft.CommerceServer.Runtime.Marketing..::.DiscountItem
The DiscountItem at the specified index.
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero or equal to or greater than Count |
Gets the DiscountItem object in the DiscountItemCollection collection with the specified index.
- 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.