Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the index of the specified discount with the specified discount identifier.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function IndexOf ( _
discountId As Integer _
) As Integer
'Usage
Dim instance As DiscountApplicationRecordCollection
Dim discountId As Integer
Dim returnValue As Integer
returnValue = instance.IndexOf(discountId)
public int IndexOf(
int discountId
)
public:
int IndexOf(
int discountId
)
public function IndexOf(
discountId : int
) : int
Parameters
- discountId
Type: System..::.Int32
The DiscountId of the discount.
Return Value
Type: System..::.Int32
The zero-based index of the DiscountApplicationRecord with the specified DiscountId or -1 if not found.
Remarks
Returns the index of the entry, or -1 if a DiscountId with specified discountId is not found in the collection.
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