[This is preliminary documentation and is subject to change.]
When overriden in derived class adds an item to the ListWithEvents<(Of <(<'T>)>)>.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[EditorBrowsableAttribute(EditorBrowsableState.Never)] public abstract int IList_Add( Object value ) |
| Visual Basic |
|---|
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _ Public MustOverride Function IList_Add ( _ value As Object _ ) As Integer |
| Visual C++ |
|---|
[EditorBrowsableAttribute(EditorBrowsableState::Never)] public: virtual int IList_Add( Object^ value ) abstract |
| F# |
|---|
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>] abstract IList_Add : value:Object -> int |
| JScript |
|---|
public abstract function IList_Add( value : Object ) : int |
Parameters
- value
- Type: System..::..Object
The object to add to the ListWithEvents<(Of <(<'T>)>)>.
Return Value
[Missing <returns> documentation for "M:Tools.CollectionsT.GenericT.ListWithEventsBase.IList_Add(System.Object)"]
Implements
IList..::..Add(Object)
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Locked is True |
| System..::..OperationCanceledException | Operation is canceled in eventhandler and CancelError is true |
| System..::..Exception | Any Exception can be thrown by event handler of the Adding event -or- Any excption may be thrown by OnAdding(ICollection, Nullable<(Of <<'(Int32>)>>), Boolean) when AllowItemCancel is true. |
See Also
Version History
1.5.3
- Method renamed from Add to IList_Add to avoid compiler from selecting this method and complaining thet it is obsolete (on ListWithEvents<(Of <(<'T>)>)>) when ListWithEvents<(Of <(<'T>)>)>[Object] is used.