[This is preliminary documentation and is subject to change.]

When overiden in derived class determines if the ListWithEvents<(Of <(<'T>)>)> isn locked (being locked prevents if from being edited)

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public abstract bool Locked { get; }
Visual Basic
Public MustOverride ReadOnly Property Locked As Boolean
	Get
Visual C++
public:
virtual property bool Locked {
	bool get () abstract;
}
F#
abstract Locked : bool
JScript
abstract function get Locked () : boolean

Remarks

ListWithEvents<(Of <(<'T>)>)> is usually locked while some events' handlers are being invoked.

Locked set to True blocks following methods and causes InvalidOperationException exception to be thrown there:Add(T)Insert(Int32, T)Remove(T)RemoveAt(Int32)Clear()()()()Item[([( Int32])]) (only setter)

See Also