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) 物件的值。

適用於