BaseCollection.SyncRoot Proprietà

Definizione

Ottiene un oggetto che può essere utilizzato per sincronizzare l'accesso al BaseCollection.

public:
 property System::Object ^ SyncRoot { System::Object ^ get(); };
[System.ComponentModel.Browsable(false)]
public object SyncRoot { get; }
[<System.ComponentModel.Browsable(false)>]
member this.SyncRoot : obj
Public ReadOnly Property SyncRoot As Object

Valore della proprietà

Oggetto che può essere utilizzato per sincronizzare l'oggetto BaseCollection.

Implementazioni

Attributi

Commenti

Se, come nel caso di , la BaseCollection proprietà restituisce IsSynchronized, la false proprietà restituisce un oggetto che può essere usato con la parola chiave C#SyncRoot.lock

Si applica a