Bewerken

Share via


DataViewSettingCollection.SyncRoot Property

Definition

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

public:
 property System::Object ^ SyncRoot { System::Object ^ get(); };
[System.ComponentModel.Browsable(false)]
public object SyncRoot { get; }
[<System.ComponentModel.Browsable(false)>]
member this.SyncRoot : obj
Public ReadOnly Property SyncRoot As Object

Property Value

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

Implements

Attributes

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 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.

Applies to