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.
Gets the content item from the current collection, based upon the specified identifier.
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
contentItemID As Integer _
) As IDictionary
'Usage
Dim instance As ContentItemCollection
Dim contentItemID As Integer
Dim value As IDictionary
value = instance.Item(contentItemID)
public IDictionary Item[
int contentItemID
] { get; }
public:
property IDictionary^ Item[int contentItemID] {
IDictionary^ get (int contentItemID);
}
JScript does not support indexed properties.
Parameters
- contentItemID
Type: System..::.Int32
The item ID of the IDictionary to retrieve.
Property Value
Type: System.Collections..::.IDictionary
The specified System.Collections.IDictionary or nullNothingnullptra null reference (Nothing in Visual Basic) if there's no row matching the contentItemID.
Exceptions
Exception | Condition |
---|---|
CommerceException | The ContentList does not contain the item_id field. |
Remarks
Gets the content item from the current collection, based upon the specified identifier.
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.