[This is preliminary documentation and is subject to change.]
When overriden in derived class removes all items from the ListWithEvents<(Of <(<'T>)>)>.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public abstract void Clear() |
| Visual Basic |
|---|
Public MustOverride Sub Clear |
| Visual C++ |
|---|
public: virtual void Clear() abstract |
| F# |
|---|
abstract Clear : unit -> unit |
| JScript |
|---|
public abstract function Clear() |
Implements
IList..::..Clear()()()()
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 Clearing event -or- Any exception can be thrown by OnClearing(ICollection) when AllowItemCancel is true. |