Item Property
Gets the DiscountApplicationRecord 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 DiscountApplicationRecord
'Usage
Dim instance As DiscountApplicationRecordCollection
Dim index As Integer
Dim value As DiscountApplicationRecord
value = instance.Item(index)
public DiscountApplicationRecord Item[
int index
] { get; }
public:
property DiscountApplicationRecord^ Item[int index] {
DiscountApplicationRecord^ get (int index);
}
JScript does not support indexed properties.
Parameters
- index
Type: System..::.Int32
The index value of the DiscountApplicationRecord to get.
Property Value
Type: Microsoft.CommerceServer.Runtime.Orders..::.DiscountApplicationRecord
The DiscountApplicationRecord with the specified index.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is outside the range of the collection. |
Remarks
Gets the DiscountApplicationRecord object in the DiscountApplicationRecordCollection 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.
See Also
Reference
DiscountApplicationRecordCollection Class