[This is preliminary documentation and is subject to change.]
[Missing <summary> documentation for "M:Tools.CollectionsT.GenericT.ListWithEvents`1.Insert(System.Int32,System.Object)"]
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[ObsoleteAttribute("Use type-safe overload instead")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public override sealed void Insert( int index, Object value ) |
| Visual Basic |
|---|
<ObsoleteAttribute("Use type-safe overload instead")> _ <EditorBrowsableAttribute(EditorBrowsableState.Never)> _ Public Overrides NotOverridable Sub Insert ( _ index As Integer, _ value As Object _ ) |
| Visual C++ |
|---|
[ObsoleteAttribute(L"Use type-safe overload instead")] [EditorBrowsableAttribute(EditorBrowsableState::Never)] public: virtual void Insert( int index, Object^ value ) override sealed |
| F# |
|---|
[<ObsoleteAttribute("Use type-safe overload instead")>] [<EditorBrowsableAttribute(EditorBrowsableState.Never)>] abstract Insert : index:int * value:Object -> unit [<ObsoleteAttribute("Use type-safe overload instead")>] [<EditorBrowsableAttribute(EditorBrowsableState.Never)>] override Insert : index:int * value:Object -> unit |
| JScript |
|---|
public override final function Insert( index : int, value : Object ) |
Parameters
- index
- Type: System..::..Int32
The zero-based index at which value should be inserted.
- value
- Type: System..::..Object
The Object to insert into the IList.
Remarks
Provided for compatibility with CollectionEditor
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentOutOfRangeException | index is not a valid index in the IList. |
| System..::..NullReferenceException | value is null reference in the IList. |
| Tools..::..TypeMismatchException | value cannot be converted to the type T |
| System..::..InvalidOperationException | Locked is True |
See Also
Version History
1.5.2
- InvalidCastException thrown replaced with TypeMismatchException.