ConcurrentStack<T>.ICollection.SyncRoot 属性

定义

获取可用于同步对 ICollection 的访问的对象。Gets an object that can be used to synchronize access to the ICollection. 不支持此属性。This property is not supported.

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

属性值

Object

返回 nullReturns null.

实现

例外

不支持 SyncRoot 属性。The SyncRoot property is not supported

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ConcurrentStack<T> 实例被强制转换为 ICollection 接口时使用。It can be used only when the ConcurrentStack<T> instance is cast to an ICollection interface.

适用于