語言

SynchronizedCollection<T>.ICollection.SyncRoot 屬性

定義

取得對象,這個物件用來同步處理對安全線程集合的存取。

property System::Object ^ System::Collections::ICollection::SyncRoot { System::Object ^ get(); };
object System.Collections.ICollection.SyncRoot { get; }
member this.System.Collections.ICollection.SyncRoot : obj
 ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot

屬性值

一個用於同步存取安全執行緒集合的物件。

實作

備註

此物件的值 syncRoot 可在使用建 SynchronizedCollection<T>(Object) 構子建立執行緒安全集合時設定。

適用於