Прочетете на английски Редактиране

Споделяне чрез


DesignerRegionCollection.IsSynchronized Property

Definition

Gets a value indicating whether access to the DesignerRegionCollection object is synchronized (thread safe).

C#
public bool IsSynchronized { get; }

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

Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also