GlobalObjectCollection Klasse
Definition
Eine stark typisierte Auflistung von globalen Objekten.A strongly typed collection of global objects. Die Auflistung kann Lese-/Schreibzugriff erlauben oder schreibgeschützt sein.The collection can be read-write or read-only. Eine Auflistung mit Lese- und Schreibzugriff kann dem Konstruktor von GlobalObjectCollection billig übergeben werden, um eine schreibgeschützte Version auszuführen, ohne die Auflistung zu kopieren.A read-write collection can be cheaply passed to the constructor of GlobalObjectCollection to make a read only version without copying the collection.
public ref class GlobalObjectCollection sealed : MarshalByRefObject, System::Collections::IList
public sealed class GlobalObjectCollection : MarshalByRefObject, System.Collections.IList
type GlobalObjectCollection = class
inherit MarshalByRefObject
interface IList
interface ICollection
interface IEnumerable
Public NotInheritable Class GlobalObjectCollection
Inherits MarshalByRefObject
Implements IList
- Vererbung
-
GlobalObjectCollection
- Implementiert
Konstruktoren
GlobalObjectCollection() |
Initialisiert eine neue Instanz einer stark typisierten Auflistung globaler Objekte.Initializes a new instance of a strongly-typed collection of global objects. |
GlobalObjectCollection(GlobalObject[]) |
Initialisiert eine neue Instanz einer stark typisierten Auflistung globaler Objekte, die anfänglich durch ein Array globaler Objekte gefüllt werden.Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects. |
GlobalObjectCollection(GlobalObject[], Boolean) |
Initialisiert eine neue Instanz einer stark typisierten Auflistung globaler Objekte, die anfänglich durch ein Array globaler Objekte gefüllt werden.Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects. |
GlobalObjectCollection(GlobalObjectCollection) |
Initialisiert eine neue Instanz einer stark typisierten Auflistung globaler Objekte, die anfänglich durch das Array |
GlobalObjectCollection(GlobalObjectCollection, Boolean) |
Initialisiert eine neue Instanz von globalen Objekten für die angegebene globale Objektauflistung für den angegebenen Lese-/Schreibzugriff.Initializes a new instance of global objects for the specified global object collection for the specified read/write access. |
Eigenschaften
Count |
Gibt die Anzahl der Elemente in dieser Auflistung zurück.Returns the number of items in this collection. |
IsFixedSize |
Bestimmt, ob die Größe dieser Auflistung geändert werden kann.Determines whether this collection's size can be changed. |
IsReadOnly |
Bestimmt, ob diese Auflistung schreibgeschützt ist.Determines whether this collection is read-only. |
IsSynchronized |
Bestimmt, ob diese Auflistung für Multithreadzugriff synchronisiert wird.Determines whether this collection is synchronized for multi-threaded access. |
Item[Int32] |
Ruft das Element am angegebenen Index ab oder legt dieses fest.Gets or sets the item at the given index. |
SyncRoot |
Ruft das Objekt ab, zu dem der Zugriff synchronisiert werden soll.Gets the object on which to synchronize access. |
Methoden
Add(GlobalObject) |
Fügt der Auflistung ein neues Element hinzu.Adds a new item to the collection. |
AddRange(GlobalObject[]) |
Fügt die Objekte in einem Array am Ende der Auflistung an.Appends the objects in an array to the end of the collection. |
AddRange(GlobalObjectCollection) |
Fügt die Objekte in einem Array am Ende der Auflistung an.Appends the objects in an array to the end of the collection. |
Clear() |
Löscht den Inhalt dieser Auflistung.Clears the contents of this collection. |
Contains(GlobalObject) |
Bestimmt, ob sich das angegebene Element in dieser Auflistung befindet.Determines whether this collection contains the given item. |
CopyTo(GlobalObject[], Int32) |
Kopiert den Inhalt dieser Auflistung ab dem angegebenen Index in das angegebene Array.Copies the contents of this collection to the given array starting at the given index. |
GetEnumerator() |
Gibt einen Enumerator für diese Auflistung zurück.Returns an enumerator for this collection. |
IndexOf(GlobalObject) |
Ruft die Position eines Elements in der Auflistung ab.Gets the position of an object in the collection. |
Insert(Int32, GlobalObject) |
Fügt ein neues Element am angegebenen Index in die Auflistung ein.Inserts a new item into the collection at the given index. |
Remove(GlobalObject) |
Entfernt ein Objekt aus der Auflistung.Removes an object from the collection. |
RemoveAt(Int32) |
Entfernt ein Objekt an der angegebenen Position aus der Auflistung.Removes an object from the collection at the specified position. |
Explizite Schnittstellenimplementierungen
ICollection.CopyTo(Array, Int32) |
Kopiert den Inhalt dieser Auflistung ab dem angegebenen Index in das angegebene Array.Copies the contents of this collection to the given array starting at the given index. |
IList.Add(Object) |
Fügt der Auflistung ein Objekt hinzu.Adds an object to the collection. |
IList.Contains(Object) |
Bestimmt, ob sich ein Objekt in der Auflistung befindet.Determines whether an object is in the collection. |
IList.IndexOf(Object) |
Ruft die Position eines Elements in der Auflistung ab.Gets the position of an object in the collection. |
IList.Insert(Int32, Object) |
Fügt der Auflistung an der angegebenen Position ein Element hinzu.Adds an item to the collection at the specified position. |
IList.Item[Int32] | |
IList.Remove(Object) |
Entfernt ein Objekt aus der Auflistung.Removes an object from the collection. |