Share via


Item Property (Int32)

Gets the specified Product or ProductFamily object from the collection, identified by position. In C#, this property is the indexer for the ProductCollection class.

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

Syntax

'Declaration
Public Overrides ReadOnly Property Item ( _
    index As Integer _
) As Product
'Usage
Dim instance As ProductCollection
Dim index As Integer
Dim value As Product

value = instance.Item(index)
public override Product Item[
    int index
] { get; }
public:
virtual property Product^ Item[int index] {
    Product^ get (int index) override;
}
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.Catalog..::.Product
A reference to a specified object from the ProductCollection.

Remarks

Returns the indexed Product or ProductFamily object within the collection.

The Item property allows for accessing the ProductCollection by index.

Returns the indexed object within the collection of Product and ProductFamily objects.

Permissions

See Also

Reference

ProductCollection Class

ProductCollection Members

Item Overload

Microsoft.CommerceServer.Catalog Namespace