Share via


Item Property

Gets a string object at a particular index in the collection.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

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

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

Parameters

  • index
    Type: System..::.Int32
    The zero-based index of the string object to retrieve.

Property Value

Type: System..::.String
The string object that exists at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index specified is out of range of the collection.

Remarks

(Public) Indexer to allow for getting a string in the collection by index. Returns the indexed object within the collection.

Permissions

See Also

Reference

ReadOnlyStringCollection Class

ReadOnlyStringCollection Members

Microsoft.CommerceServer.Runtime Namespace