Item Property (Int32)
Gets a particular property of the discount 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 Object
'Usage
Dim instance As DiscountItem
Dim index As Integer
Dim value As Object
value = instance.Item(index)
public Object Item[
int index
] { get; }
public:
property Object^ Item[int index] {
Object^ 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: System..::.Object
The Object at the specified index.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero or equal to or greater than Count |
Remarks
Gets the property object in the DiscountItem 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.