DesignerRegionCollection::IsSynchronized Property

 

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

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public:
property bool IsSynchronized {
	bool get();
}

Property Value

Type: System::Boolean

true, if access to the DesignerRegionCollection is synchronized; otherwise, false.

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.

.NET Framework
Available since 2.0
Return to top
Show: