Jaa


Item Property (String)

Gets the specified InventoryCatalog object from the collection, identified by key. In C#, this property is the indexer for the InventoryCatalogCollection class.

Namespace:  Microsoft.CommerceServer.Inventory
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    catalogName As String _
) As InventoryCatalog
'Usage
Dim instance As InventoryCatalogCollection
Dim catalogName As String
Dim value As InventoryCatalog

value = instance.Item(catalogName)
public InventoryCatalog Item[
    string catalogName
] { get; }
public:
property InventoryCatalog^ Item[String^ catalogName] {
    InventoryCatalog^ get (String^ catalogName);
}
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 inventory catalog to find.

Property Value

Type: Microsoft.CommerceServer.Inventory..::.InventoryCatalog
A reference to a specified InventoryCatalog object from the InventoryCatalogCollection.

Exceptions

Exception Condition
EntityDoesNotExistException

Thrown if no inventory catalog in the collection 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.

Returns the indexed object within the collection.

This property is the indexer for the InventoryCatalogCollection class. The Item property allows for accessing the InventoryCatalogCollection by categoryName.

Permissions

See Also

Reference

InventoryCatalogCollection Class

InventoryCatalogCollection Members

Item Overload

Microsoft.CommerceServer.Inventory Namespace