Condividi tramite


GlobalObjectCollection Class

Definition

A strongly typed collection of global objects. The collection can be read-write or read-only. 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
Inheritance
GlobalObjectCollection
Implements

Constructors

GlobalObjectCollection()

Initializes a new instance of a strongly-typed collection of global objects.

GlobalObjectCollection(GlobalObject[], Boolean)

Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects.

GlobalObjectCollection(GlobalObject[])

Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects.

GlobalObjectCollection(GlobalObjectCollection, Boolean)

Initializes a new instance of global objects for the specified global object collection for the specified read/write access.

GlobalObjectCollection(GlobalObjectCollection)

Initializes a new instance of a strongly-typed collection of global objects initially populated by the array items.

Properties

Count

Returns the number of items in this collection.

IsFixedSize

Determines whether this collection's size can be changed.

IsReadOnly

Determines whether this collection is read-only.

IsSynchronized

Determines whether this collection is synchronized for multi-threaded access.

Item[Int32]

Gets or sets the item at the given index.

SyncRoot

Gets the object on which to synchronize access.

Methods

Add(GlobalObject)

Adds a new item to the collection.

AddRange(GlobalObject[])

Appends the objects in an array to the end of the collection.

AddRange(GlobalObjectCollection)

Appends the objects in an array to the end of the collection.

Clear()

Clears the contents of this collection.

Contains(GlobalObject)

Determines whether this collection contains the given item.

CopyTo(GlobalObject[], Int32)

Copies the contents of this collection to the given array starting at the given index.

GetEnumerator()

Returns an enumerator for this collection.

IndexOf(GlobalObject)

Gets the position of an object in the collection.

Insert(Int32, GlobalObject)

Inserts a new item into the collection at the given index.

Remove(GlobalObject)

Removes an object from the collection.

RemoveAt(Int32)

Removes an object from the collection at the specified position.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the contents of this collection to the given array starting at the given index.

IList.Add(Object)

Adds an object to the collection.

IList.Contains(Object)

Determines whether an object is in the collection.

IList.IndexOf(Object)

Gets the position of an object in the collection.

IList.Insert(Int32, Object)

Adds an item to the collection at the specified position.

IList.Item[Int32]
IList.Remove(Object)

Removes an object from the collection.

Applies to