SchemaNameCollection::IList::Item Property (Int32)
.NET Framework (current version)
Gets or sets the element at the specified index.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
private: property Object^ default[ int index ] { virtual Object^ get(int index) sealed = IList::default::get; virtual void set(int index, Object^ value) sealed = IList::default::set; }
Parameters
- index
-
Type:
System::Int32
The zero-based index of the element to get or set.
Implements
IList::Item[Int32]| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is not a valid index in the IList. |
| NotSupportedException | The property is set and the IList is read-only. |
This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index].
.NET Framework
Available since 2.0
Available since 2.0
Show: