Share via


Item Property (String)

Gets a particular property of the discount collection, based upon a specified name.

Namespace:  Microsoft.CommerceServer.Runtime.Marketing
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    key As String _
) As Object
'Usage
Dim instance As DiscountItem
Dim key As String
Dim value As Object

value = instance.Item(key)
public Object Item[
    string key
] { get; }
public:
property Object^ Item[String^ key] {
    Object^ get (String^ key);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: System..::.Object
The Object corresponding to the specified key.

Exceptions

Exception Condition
KeyNotFoundException

key does not exist in the collection.

Remarks

Gets the property object in the DiscountItem collection with the specified name.

Permissions

See Also

Reference

DiscountItem Class

DiscountItem Members

Item Overload

Microsoft.CommerceServer.Runtime.Marketing Namespace