BaseCollection.SyncRoot Propiedad
Definición
Obtiene un objeto que se puede usar para sincronizar el acceso a BaseCollection.Gets an object that can be used to synchronize access to the 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
Valor de propiedad
Objeto que se puede utilizar para sincronizar la clase BaseCollection.An object that can be used to synchronize the BaseCollection.
Implementaciones
- Atributos
Comentarios
Si, como es el caso de BaseCollection , la IsSynchronized propiedad devuelve false
, la SyncRoot propiedad devuelve un objeto que se puede usar con la lock
palabra clave de C#.If, as is the case with the BaseCollection, the IsSynchronized property returns false
, then the SyncRoot property returns an object that can be used with the C# lock
keyword.