[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.GenericT
Assembly: 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

ExceptionCondition
System..::..InvalidOperationExceptionLocked is True
System..::..OperationCanceledExceptionOperation is canceled in eventhandler and CancelError is true
System..::..ExceptionAny Exception can be thrown by event handler of the Clearing event -or- Any exception can be thrown by OnClearing(ICollection) when AllowItemCancel is true.

See Also