DesignerRegionCollection.IsSynchronized Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether access to the DesignerRegionCollection object is synchronized (thread safe).
public:
property bool IsSynchronized { bool get(); };
public bool IsSynchronized { get; }
member this.IsSynchronized : bool
Public ReadOnly Property IsSynchronized As Boolean
Property Value
true
, if access to the DesignerRegionCollection is synchronized; otherwise, false
.
Remarks
Enumerating through a collection is not a thread-safe procedure intrinsically. Even when a collection is synchronized, other threads can still modify the collection. This causes exceptions during enumeration.
Lock the collection by using the SyncRoot method during the whole enumeration to guarantee thread safety.