ICollection.SyncRoot 属性

Returns an object that can be used to synchronize access to the ICollection.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Private ReadOnly Property SyncRoot As Object
    Implements ICollection.SyncRoot
    Get
用法
Dim instance As EventPropertyCollection
Dim value As Object

value = CType(instance, ICollection).SyncRoot
Object ICollection.SyncRoot { get; }
private:
virtual property Object^ SyncRoot {
    Object^ get () sealed = ICollection::SyncRoot::get;
}
private abstract SyncRoot : Object
private override SyncRoot : Object
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。

属性值

类型:System. . :: . .Object
Object that can be used to synchronize or lock access to the ICollection.

实现

ICollection. . :: . .SyncRoot

注释

Synchronization is effective only if all threads lock this object before accessing the collection.