[This is preliminary documentation and is subject to change.]

Gets or sets the element at the specified index.

Namespace: Tools.CollectionsT.GenericT
Assembly: 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
JScript does not support indexed properties.

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

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionindex is not a valid index in the IList.
Tools..::..TypeMismatchExceptionWhen setting value that cannot be converted to T
System..::..InvalidOperationExceptionLocked is True (in setter)

See Also

Collapse/expand Version History