SynchronizedCollection<T>.ICollection.SyncRoot Propriété

Définition

Obtient l’objet utilisé pour synchroniser l’accès à la collection thread-safe.

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

Valeur de propriété

Objet utilisé pour synchroniser l'accès à la collection thread-safe.

Implémente

Remarques

La valeur de cet objet syncRoot peut être définie lors de la création de la collection thread-safe à l'aide du constructeur SynchronizedCollection<T>(Object).

S’applique à