[This is preliminary documentation and is subject to change.]
Gets or sets the element at the specified index.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[ObsoleteAttribute("Use type-safe Item property instead")] [BrowsableAttribute(false)] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public override sealed Object this[ int index ] { get; set; } |
| Visual Basic |
|---|
<ObsoleteAttribute("Use type-safe Item property instead")> _ <BrowsableAttribute(False)> _ <EditorBrowsableAttribute(EditorBrowsableState.Never)> _ Public Overrides NotOverridable Property IList_Item ( _ index As Integer _ ) As Object Get Set |
| Visual C++ |
|---|
[ObsoleteAttribute(L"Use type-safe Item property instead")] [BrowsableAttribute(false)] [EditorBrowsableAttribute(EditorBrowsableState::Never)] public: virtual property Object^ IList_Item[int index] { Object^ get (int index) override sealed; void set (int index, Object^ value) override sealed; } |
| F# |
|---|
[<ObsoleteAttribute("Use type-safe Item property instead")>] [<BrowsableAttribute(false)>] [<EditorBrowsableAttribute(EditorBrowsableState.Never)>] abstract IList_Item : Object with get, set [<ObsoleteAttribute("Use type-safe Item property instead")>] [<BrowsableAttribute(false)>] [<EditorBrowsableAttribute(EditorBrowsableState.Never)>] override IList_Item : Object with get, set |
| JScript |
|---|
|
Parameters
- index
- Type: System..::..Int32
The zero-based index of the element to get or set.
Return Value
The element at the specified index.
Remarks
Provided for compatibility with CollectionEditor
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentOutOfRangeException | index is not a valid index in the IList. |
| Tools..::..TypeMismatchException | When setting value that cannot be converted to T |
| System..::..InvalidOperationException | Locked is True (in setter) |
See Also
Version History
1.5.2
- InvalidCastException thrown replaced with TypeMismatchException