SynchronizedReadOnlyCollection<T>.ICollection.SyncRoot SynchronizedReadOnlyCollection<T>.ICollection.SyncRoot SynchronizedReadOnlyCollection<T>.ICollection.SyncRoot Property

定义

获取用于对线程安全只读集合的访问进行同步的对象。Gets the object used to synchronize access to the thread-safe, read-only collection.

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

属性值

用于对线程安全只读集合的访问进行同步的对象。The object used to synchronize access to the thread-safe, read-only collection.

实现

注解

使用 syncRoot 构造函数创建线程安全集合时,可以设置此 SynchronizedReadOnlyCollection<T>(Object) 对象的值。The value of this syncRoot object can be set when creating the thread-safe collection using the SynchronizedReadOnlyCollection<T>(Object) constructor.

适用于