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.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

System.Object
  System.MarshalByRefObject
    Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection

public sealed class GlobalObjectCollection : MarshalByRefObject, 
	IList, ICollection, IEnumerable

NameDescription
System_CAPS_pubmethodGlobalObjectCollection()

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

System_CAPS_pubmethodGlobalObjectCollection(GlobalObject[])

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

System_CAPS_pubmethodGlobalObjectCollection(GlobalObject[], Boolean)

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

System_CAPS_pubmethodGlobalObjectCollection(GlobalObjectCollection)

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

System_CAPS_pubmethodGlobalObjectCollection(GlobalObjectCollection, Boolean)

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

NameDescription
System_CAPS_pubpropertyCount

Returns the number of items in this collection.

System_CAPS_pubpropertyIsFixedSize

Determines whether this collection's size can be changed.

System_CAPS_pubpropertyIsReadOnly

Determines whether this collection is read-only.

System_CAPS_pubpropertyIsSynchronized

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

System_CAPS_pubpropertyItem[Int32]

Gets or sets the item at the given index.

System_CAPS_pubpropertySyncRoot

Gets the object on which to synchronize access.

NameDescription
System_CAPS_pubmethodAdd(GlobalObject)

Adds a new item to the collection.

System_CAPS_pubmethodAddRange(GlobalObject[])

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

System_CAPS_pubmethodAddRange(GlobalObjectCollection)

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

System_CAPS_pubmethodClear()

Clears the contents of this collection.

System_CAPS_pubmethodContains(GlobalObject)

Determines whether this collection contains the given item.

System_CAPS_pubmethodCopyTo(GlobalObject[], Int32)

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

System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator for this collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIndexOf(GlobalObject)

Gets the position of an object in the collection.

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodInsert(Int32, GlobalObject)

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

System_CAPS_pubmethodRemove(GlobalObject)

Removes an object from the collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes an object from the collection at the specified position.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Add(Object)

Adds an object to the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

Determines whether an object is in the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

Gets the position of an object in the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

Adds an item to the collection at the specified position.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.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.

Return to top
Show: