Rediger

Del via


DesignerRegionCollection.IsSynchronized Property

Definition

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.

Applies to

See also