Partager via


Item Property (Int32)

Gets the specified InventoryCatalog object from the collection, identified by position. 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 ( _
    index As Integer _
) As InventoryCatalog
'Usage
Dim instance As InventoryCatalogCollection
Dim index As Integer
Dim value As InventoryCatalog

value = instance.Item(index)
public InventoryCatalog Item[
    int index
] { get; }
public:
property InventoryCatalog^ Item[int index] {
    InventoryCatalog^ get (int index);
}
JScript does not support indexed properties.

Parameters

  • index
    Type: System..::.Int32
    An expression that specifies the position of a member of the collection. index must be a number from 1 to the value of the collection's Count property.

Property Value

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

Remarks

Returns the indexed InventoryCatalog object within the collection. The Item property allows for accessing the InventoryCatalogCollection by index.

Permissions

See Also

Reference

InventoryCatalogCollection Class

InventoryCatalogCollection Members

Item Overload

Microsoft.CommerceServer.Inventory Namespace