Item Property (String)
Gets the specified ProductCatalog object from the collection, identified by key. In C#, this property is the indexer for the ProductCatalogCollection class.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property Item ( _
catalogName As String _
) As ProductCatalog
'Usage
Dim instance As ProductCatalogCollection
Dim catalogName As String
Dim value As ProductCatalog
value = instance.Item(catalogName)
public override ProductCatalog Item[
string catalogName
] { get; }
public:
virtual property ProductCatalog^ Item[String^ catalogName] {
ProductCatalog^ get (String^ catalogName) override;
}
JScript does not support indexed properties.
Parameters
- catalogName
Type: System..::.String
An expression that specifies the key value of a member of the collection. The name of the object to find.
Property Value
Type: Microsoft.CommerceServer.Catalog..::.ProductCatalog
A reference to a specified ProductCatalog object from the ProductCatalogCollection.
Exceptions
Exception | Condition |
---|---|
EntityDoesNotExistException | Thrown if no catalog in the collection's current page is named catalogName. |
Remarks
If catalogName doesn't match any existing member of the collection, an error occurs.
If an object exists within the collection that matches the catalogName, it is returned.
This property is the indexer for the ProductCatalogCollection class. The Item property allows for accessing the ProductCatalogCollection by catalogName.
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
ProductCatalogCollection Class