[This is preliminary documentation and is subject to change.]
Adds an item to the IList.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[EditorBrowsableAttribute(EditorBrowsableState.Never)] [ObsoleteAttribute("Use type-safe overload instead")] public override sealed int IList_Add( Object value ) |
| Visual Basic |
|---|
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _ <ObsoleteAttribute("Use type-safe overload instead")> _ Public Overrides NotOverridable Function IList_Add ( _ value As Object _ ) As Integer |
| Visual C++ |
|---|
[EditorBrowsableAttribute(EditorBrowsableState::Never)] [ObsoleteAttribute(L"Use type-safe overload instead")] public: virtual int IList_Add( Object^ value ) override sealed |
| F# |
|---|
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>] [<ObsoleteAttribute("Use type-safe overload instead")>] abstract IList_Add : value:Object -> int [<EditorBrowsableAttribute(EditorBrowsableState.Never)>] [<ObsoleteAttribute("Use type-safe overload instead")>] override IList_Add : value:Object -> int |
| JScript |
|---|
public override final function IList_Add( value : Object ) : int |
Parameters
- value
- Type: System..::..Object
The Object to add to the IList.
Return Value
The position into which the new element was inserted.
Remarks
Provided for compatibility with CollectionEditor
Exceptions
| Exception | Condition |
|---|---|
| Tools..::..TypeMismatchException | value cannot be converted into type T |
| System..::..InvalidOperationException | Locked is True |
See Also
Version History
1.5.2
- InvalidCastException thrown replaced with TypeMismatchException
1.5.3
- Renamed from Add to IList_Add. See comment on IList_Add(Object).