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
- key
Type: System..::.String
The name of the element to get.
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
- 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.