Partager via


Propriété EventPropertyCollection.ICollection.SyncRoot

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Private ReadOnly Property SyncRoot As Object 
    Implements ICollection.SyncRoot 
    Get
'Utilisation
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 prend en charge l'utilisation d'implémentations d'interface explicites, mais pas la déclaration de nouvelles implémentations d'interface.

Valeur de propriété

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

Implémente

ICollection.SyncRoot

Notes

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

Voir aussi

Référence

EventPropertyCollection Classe

Espace de noms Microsoft.SqlServer.Management.Smo