Share via


GlobalObjectCollection Members

Include Protected Members
Include Inherited Members

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.

The GlobalObjectCollection type exposes the following members.

Constructors

 

Name

Description

Public method

GlobalObjectCollection

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

Top

Methods

 

Name

Description

Public method

Add

Adds a new item to the collection.

Public method

AddRange

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

Public method

Clear

Clears the contents of this collection.

Public method

Contains

Determines whether this collection contains the given item.

Public method

CopyTo

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

Public method

CreateObjRef

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetEnumerator

Returns an enumerator for this collection.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetLifetimeService

Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

IndexOf

Gets the position of an object in the collection.

Public method

InitializeLifetimeService

Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)

Public method

Insert

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

Protected method

MemberwiseClone

Overloaded.

Public method

Remove

Removes an object from the collection.

Public method

RemoveAt

Removes an object from the collection at the specified position.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

Count

Returns the number of items in this collection.

Public property

IsFixedSize

Determines whether this collection's size can be changed.

Public property

IsReadOnly

Determines whether this collection is read-only.

Public property

IsSynchronized

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

Public property

Item

Gets or sets the item at the given index.

Public property

SyncRoot

Gets the object on which to synchronize access.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IList.Add

Adds an object to the collection.

Explicit interface implemetationPrivate method

IList.Contains

Determines whether an object is in the collection.

Explicit interface implemetationPrivate method

ICollection.CopyTo

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

Explicit interface implemetationPrivate method

IList.IndexOf

Gets the position of an object in the collection.

Explicit interface implemetationPrivate method

IList.Insert

Adds an item to the collection at the specified position.

Explicit interface implemetationPrivate property

IList.Item

Gets or sets the global object at the specified index.

Explicit interface implemetationPrivate method

IList.Remove

Removes an object from the collection.

Top

See Also

Reference

GlobalObjectCollection Class

Microsoft.VisualStudio.Shell.Design Namespace