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

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#
[BrowsableAttribute(false)]
public override sealed bool Locked { get; }
Visual Basic
<BrowsableAttribute(False)> _
Public Overrides NotOverridable ReadOnly Property Locked As Boolean
	Get
Visual C++
[BrowsableAttribute(false)]
public:
virtual property bool Locked {
	bool get () override sealed;
}
F#
[<BrowsableAttribute(false)>]
abstract Locked : bool
[<BrowsableAttribute(false)>]
override Locked : bool
JScript
override final 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)

Change of this property is reported via PropertyChanged.

See Also

Collapse/expand Version History

1.5.2