다음을 통해 공유


Item Property (Int32)

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

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    index As Integer _
) As Variant
'Usage
Dim instance As VariantCollection
Dim index As Integer
Dim value As Variant

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

Remarks

Returns the indexed object within the collection.

The Item property allows for accessing the VariantCollection by index.

Permissions

See Also

Reference

VariantCollection Class

VariantCollection Members

Item Overload

Microsoft.CommerceServer.Catalog Namespace