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
- index
Type: System..::.Int32
The zero-based index of the element to get.
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
- 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.