Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the element at the specified index.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Private Property Item ( _
index As Integer _
) As Object Implements IList.Item
Object IList.this[
int index
] { get; set; }
private:
virtual property Object^ Item[int index] {
Object^ get (int index) sealed = IList::Item::get;
void set (int index, Object^ value) sealed = IList::Item::set;
}
private abstract Item :
index:int -> Object with get, set
private override Item :
index:int -> Object with get, set
JScript does not support explicit interface implementations.
Parameters
- index
Type: System. . :: . .Int32
The index of the element to get or set.
Property Value
Type: System. . :: . .Object
The element at the specified index.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero. -or- index is equal to or greater than ICollection..::..Count. |
ArgumentException | The current Array does not have exactly one dimension. |
Remarks
This member is an explicit interface member implementation. It can be used only when the Array instance is cast to an IList interface.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.