Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Inheritance Hierarchy
Object
  MarshalByRefObject
    Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public NotInheritable Class GlobalObjectCollection _
    Inherits MarshalByRefObject _
    Implements IList, ICollection, IEnumerable
public sealed class GlobalObjectCollection : MarshalByRefObject, 
    IList, ICollection, IEnumerable
public ref class GlobalObjectCollection sealed : public MarshalByRefObject, 
    IList, ICollection, IEnumerable
[<Sealed>]
type GlobalObjectCollection =  
    class 
        inherit MarshalByRefObject 
        interface IList 
        interface ICollection 
        interface IEnumerable 
    end
public final class GlobalObjectCollection extends MarshalByRefObject implements IList, ICollection, IEnumerable
The GlobalObjectCollection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | GlobalObjectCollection() | Initializes a new instance of a strongly-typed collection of global objects. | 
| .gif) | GlobalObjectCollection(array<GlobalObject[]) | Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects. | 
| .gif) | GlobalObjectCollection(GlobalObjectCollection) | Initializes a new instance of a strongly-typed collection of global objects initially populated by the array items. | 
| .gif) | GlobalObjectCollection(array<GlobalObject[], Boolean) | Initializes a new instance of a strongly-typed collection of global objects initially populated by an array of global objects. | 
| .gif) | GlobalObjectCollection(GlobalObjectCollection, Boolean) | Initializes a new instance of global objects for the specified global object collection for the specified read/write access. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Count | Returns the number of items in this collection. | 
| .gif) | IsFixedSize | Determines whether this collection's size can be changed. | 
| .gif) | IsReadOnly | Determines whether this collection is read-only. | 
| .gif) | IsSynchronized | Determines whether this collection is synchronized for multi-threaded access. | 
| .gif) | Item | Gets or sets the item at the given index. | 
| .gif) | SyncRoot | Gets the object on which to synchronize access. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Add | Adds a new item to the collection. | 
| .gif) | AddRange(array<GlobalObject[]) | Appends the objects in an array to the end of the collection. | 
| .gif) | AddRange(GlobalObjectCollection) | Appends the objects in an array to the end of the collection. | 
| .gif) | Clear | Clears the contents of this collection. | 
| .gif) | Contains | Determines whether this collection contains the given item. | 
| .gif) | CopyTo | Copies the contents of this collection to the given array starting at the given index. | 
| .gif) | CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | GetEnumerator | Returns an enumerator for this collection. | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IndexOf | Gets the position of an object in the collection. | 
| .gif) | InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | 
| .gif) | Insert | Inserts a new item into the collection at the given index. | 
| .gif) | Remove | Removes an object from the collection. | 
| .gif) | RemoveAt | Removes an object from the collection at the specified position. | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IList.Add | Adds an object to the collection. | 
| .gif) .gif) | IList.Contains | Determines whether an object is in the collection. | 
| .gif) .gif) | ICollection.CopyTo | Copies the contents of this collection to the given array starting at the given index. | 
| .gif) .gif) | IList.IndexOf | Gets the position of an object in the collection. | 
| .gif) .gif) | IList.Insert | Adds an item to the collection at the specified position. | 
| .gif) .gif) | IList.Item | Gets or sets the global object at the specified index. | 
| .gif) .gif) | IList.Remove | Removes an object from the collection. | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.