Share via


Item Property (Int32)

Gets the specified CatalogObject object from the collection, identified by position. In C#, this property is the indexer for the CatalogObjectCollection class.

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

Syntax

'Declaration
Public Overridable ReadOnly Property Item ( _
    index As Integer _
) As TObject
'Usage
Dim instance As CatalogObjectCollection
Dim index As Integer
Dim value As TObject

value = instance.Item(index)
public virtual TObject Item[
    int index
] { get; }
public:
virtual property TObject Item[int index] {
    TObject 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: TObject
A reference to a specified CatalogObject object from the CatalogObjectCollection<(Of <(TObject, TDataSet>)>).

Remarks

Returns the indexed object within the collection.

The Item property allows for accessing the CatalogObjectCollection`2 by index.

Permissions

See Also

Reference

CatalogObjectCollection<(Of <(TObject, TDataSet>)>) Class

CatalogObjectCollection<(Of <(TObject, TDataSet>)>) Members

Item Overload

Microsoft.CommerceServer.Catalog Namespace