Item Property
Gets the payment method at the specified index from the collection.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As PaymentMethod
'Usage
Dim instance As PaymentMethodCollection
Dim index As Integer
Dim value As PaymentMethod
value = instance.Item(index)
public PaymentMethod Item[
int index
] { get; }
public:
property PaymentMethod^ Item[int index] {
PaymentMethod^ get (int index);
}
JScript does not support indexed properties.
Parameters
- index
Type: System..::.Int32
Index of the PaymentMethod to retrieve.
Property Value
Type: Microsoft.CommerceServer.Orders..::.PaymentMethod
The PaymentMethod object in the PaymentMethodCollection collection at the specified index.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is outside the range of the collection. |
Remarks
The PaymentMethod object at 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.