GlobalObjectCollection Class
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.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
| Name | Description | |
|---|---|---|
![]() | GlobalObjectCollection() | Initializes a new instance of a strongly-typed collection 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(GlobalObject[], Boolean) | Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects. |
![]() | GlobalObjectCollection(GlobalObjectCollection) | Initializes a new instance of a strongly-typed collection of global objects initially populated by the array items. |
![]() | GlobalObjectCollection(GlobalObjectCollection, Boolean) | Initializes a new instance of global objects for the specified global object collection for the specified read/write access. |
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | CreateObjRef(Type) | (Inherited from MarshalByRefObject.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetEnumerator() | Returns an enumerator for this collection. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetLifetimeService() | (Inherited from MarshalByRefObject.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IndexOf(GlobalObject) | Gets the position of an object in the collection. |
![]() | InitializeLifetimeService() | (Inherited from MarshalByRefObject.) |
![]() | 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. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | 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.Remove(Object) | Removes an object from the collection. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



