SyncRoot Property
Collapse the table of content
Expand the table of content

DataViewSettingCollection.SyncRoot Property

 

Gets an object that can be used to synchronize access to the DataViewSettingCollection.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

[<BrowsableAttribute(false)>]
abstract SyncRoot : Object with get
[<BrowsableAttribute(false)>]
override SyncRoot : Object with get

Property Value

Type: System.Object

An object that can be used to synchronize access to the DataViewSettingCollection.

Derived classes can provide a synchronized version of the DataViewSettingCollection using the SyncRoot property.

Program code must always perform synchronized operations on the SyncRoot of the DataViewSettingCollection, not directly on the DataViewSettingCollection. This guarantees the correct operation of collections that are derived from other objects. Specifically, it maintains the correct synchronization with other threads that might be simultaneously modifying the DataViewSettingCollection.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft