DataViewSettingCollection.SyncRoot 屬性

定義

取得可用以同步存取 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

屬性值

可用來同步存取 DataViewSettingCollection 的物件。

實作

屬性

備註

衍生類別可以使用 屬性來提供的同步版本DataViewSettingCollectionSyncRoot

程序代碼一律必須在的 DataViewSettingCollectionSyncRoot執行同步處理作業,而不是直接在 上DataViewSettingCollection執行。 這可確保衍生自其他物件的集合正確作業。 具體而言,它會與其他可能同時修改 DataViewSettingCollection的線程維持正確的同步處理。

適用於