SynchronizedReadOnlyCollection<T> Constructores
Definición
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T>.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class.
Sobrecargas
SynchronizedReadOnlyCollection<T>() |
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T>.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class. |
SynchronizedReadOnlyCollection<T>(Object) |
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T> con el objeto que se usa para sincronizar el acceso a la colección segura para subprocesos.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class with the object used to synchronize access to the thread-safe, read-only collection. |
SynchronizedReadOnlyCollection<T>(Object, List<T>, Boolean) | |
SynchronizedReadOnlyCollection<T>(Object, IEnumerable<T>) |
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T> de una lista enumerable especificada de elementos y con el objeto que se usa para sincronizar el acceso a la colección segura para subprocesos y de solo lectura.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class from a specified enumerable list of elements and with the object used to synchronize access to the thread-safe, read-only collection. |
SynchronizedReadOnlyCollection<T>(Object, T[]) |
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T> de una matriz especificada de elementos y con el objeto que se usa para sincronizar el acceso a la colección segura para subprocesos y de solo lectura.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class from a specified array of elements and with the object used to synchronize access to the thread-safe, read-only collection. |
SynchronizedReadOnlyCollection<T>()
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T>.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class.
public:
SynchronizedReadOnlyCollection();
public SynchronizedReadOnlyCollection ();
Public Sub New ()
Se aplica a
SynchronizedReadOnlyCollection<T>(Object)
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T> con el objeto que se usa para sincronizar el acceso a la colección segura para subprocesos.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class with the object used to synchronize access to the thread-safe, read-only collection.
public:
SynchronizedReadOnlyCollection(System::Object ^ syncRoot);
public:
SynchronizedReadOnlyCollection(System::Object ^ sync_root);
public SynchronizedReadOnlyCollection (object syncRoot);
public SynchronizedReadOnlyCollection (object sync_root);
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
Public Sub New (syncRoot As Object)
Public Sub New (sync_root As Object)
Parámetros
- syncRootsync_root
- Object
El objeto que se usa para sincronizar el acceso a la colección de solo lectura y segura para subprocesos.The object used to synchronize access to the thread-safe, read-only collection.
Excepciones
syncRoot
es null
.syncRoot
is null
.
Comentarios
Si varias instancias de SynchronizedReadOnlyCollection<T> se crean utilizando el mismo syncRoot
, se protege el acceso en todas las instancias.If multiple instances of the SynchronizedReadOnlyCollection<T> are created using the same syncRoot
, then access is protected across all instances.
Se aplica a
SynchronizedReadOnlyCollection<T>(Object, List<T>, Boolean)
public:
SynchronizedReadOnlyCollection(System::Object ^ sync_root, System::Collections::Generic::List<T> ^ list, bool make_copy);
public SynchronizedReadOnlyCollection (object sync_root, System.Collections.Generic.List<T> list, bool make_copy);
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj * System.Collections.Generic.List<'T> * bool -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
Public Sub New (sync_root As Object, list As List(Of T), make_copy As Boolean)
Parámetros
- sync_root
- Object
- list
- List<T>
- make_copy
- Boolean
Se aplica a
SynchronizedReadOnlyCollection<T>(Object, IEnumerable<T>)
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T> de una lista enumerable especificada de elementos y con el objeto que se usa para sincronizar el acceso a la colección segura para subprocesos y de solo lectura.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class from a specified enumerable list of elements and with the object used to synchronize access to the thread-safe, read-only collection.
public:
SynchronizedReadOnlyCollection(System::Object ^ syncRoot, System::Collections::Generic::IEnumerable<T> ^ list);
public:
SynchronizedReadOnlyCollection(System::Object ^ sync_root, System::Collections::Generic::IEnumerable<T> ^ list);
public SynchronizedReadOnlyCollection (object syncRoot, System.Collections.Generic.IEnumerable<T> list);
public SynchronizedReadOnlyCollection (object sync_root, System.Collections.Generic.IEnumerable<T> list);
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj * seq<'T> -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj * seq<'T> -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
Public Sub New (syncRoot As Object, list As IEnumerable(Of T))
Public Sub New (sync_root As Object, list As IEnumerable(Of T))
Parámetros
- syncRootsync_root
- Object
El objeto que se usa para sincronizar el acceso a la colección de solo lectura y segura para subprocesos.The object used to synchronize access to the thread-safe, read-only collection.
- list
- IEnumerable<T>
La colección IEnumerable<T> de elementos que se usa para inicializar la colección segura para subprocesos y de solo lectura.The IEnumerable<T> collection of elements used to initialize the thread-safe, read-only collection.
Excepciones
syncRoot
o list
es null
.syncRoot
or list
is null
.
Se aplica a
SynchronizedReadOnlyCollection<T>(Object, T[])
Inicializa una nueva instancia de la clase SynchronizedReadOnlyCollection<T> de una matriz especificada de elementos y con el objeto que se usa para sincronizar el acceso a la colección segura para subprocesos y de solo lectura.Initializes a new instance of the SynchronizedReadOnlyCollection<T> class from a specified array of elements and with the object used to synchronize access to the thread-safe, read-only collection.
public:
SynchronizedReadOnlyCollection(System::Object ^ syncRoot, ... cli::array <T> ^ list);
public:
SynchronizedReadOnlyCollection(System::Object ^ sync_root, ... cli::array <T> ^ list);
public SynchronizedReadOnlyCollection (object syncRoot, params T[] list);
public SynchronizedReadOnlyCollection (object sync_root, params T[] list);
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj * 'T[] -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
new System.Collections.Generic.SynchronizedReadOnlyCollection<'T> : obj * 'T[] -> System.Collections.Generic.SynchronizedReadOnlyCollection<'T>
Public Sub New (syncRoot As Object, ParamArray list As T())
Public Sub New (sync_root As Object, ParamArray list As T())
Parámetros
- syncRootsync_root
- Object
El objeto que se usa para sincronizar el acceso a la colección de solo lectura y segura para subprocesos.The object used to synchronize access to the thread-safe, read-only collection.
- list
- T[]
La Array de elementos de tipo T
que se usa para inicializar la colección segura para subprocesos y de solo lectura.The Array of type T
elements used to initialize the thread-safe, read-only collection.
Excepciones
syncRoot
o list
es null
.syncRoot
or list
is null
.