Item Property (Int32)
Gets the specified InventorySku object from the collection, identified by position. In C#, this property is the indexer for the InventorySkuCollection class.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As InventorySku
'Usage
Dim instance As InventorySkuCollection
Dim index As Integer
Dim value As InventorySku
value = instance.Item(index)
public InventorySku Item[
int index
] { get; }
public:
property InventorySku^ Item[int index] {
InventorySku^ 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..::.InventorySku
A reference to a specified InventorySku object from the InventorySkuCollection.
Remarks
Returns the indexed InventorySku object within the collection. The Item property allows for accessing the InventoryCatalogCollection by index.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.