Condividi tramite


Proprietà EventPropertyCollection.ICollection.SyncRoot

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Private ReadOnly Property SyncRoot As Object 
    Implements ICollection.SyncRoot 
    Get
'Utilizzo
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 supporta l'utilizzo di implementazioni di interfacce esplicite, ma non la dichiarazione di nuove interfacce.

Valore proprietà

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

Implementa

ICollection.SyncRoot

Osservazioni

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

Vedere anche

Riferimento

EventPropertyCollection Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo