Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.

[Visual Basic]
Public Overridable ReadOnly Property SyncRoot As Object  Implements _
   ICollection.SyncRoot
[C#]
public virtual object SyncRoot {get;}
[C++]
public: __property virtual Object* get_SyncRoot();
[JScript]
public function get SyncRoot() : Object;

Property Value

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

Implements

ICollection.SyncRoot

Remarks

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 ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the DataViewSettingCollection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataViewSettingCollection Class | DataViewSettingCollection Members | System.Data Namespace

Show:
© 2015 Microsoft