Freigeben über


ICollection.SyncRoot-Eigenschaft

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Private ReadOnly Property SyncRoot As Object
    Implements ICollection.SyncRoot
    Get
'Usage
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 unterstützt die Verwendung expliziter Schnittstellenimplementierungen, aber nicht die Deklaration neuer Schnittstellenimplementierungen.

Eigenschaftswert

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

Implementiert

ICollection. . :: . .SyncRoot

Hinweise

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