GlobalTypeCollection Class
A strongly typed collection of global types.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
Microsoft.VisualStudio.Shell.Design.GlobalTypeCollection
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
‘선언
Public NotInheritable Class GlobalTypeCollection _
Inherits MarshalByRefObject _
Implements IList, ICollection, IEnumerable
public sealed class GlobalTypeCollection : MarshalByRefObject,
IList, ICollection, IEnumerable
The GlobalTypeCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GlobalTypeCollection() | Creates a strongly-typed collection of global objects. | |
GlobalTypeCollection(array<GlobalType[]) | Creates a strongly-typed collection of global objects. | |
GlobalTypeCollection(GlobalTypeCollection) | Creates a strongly-typed collection of global objects. | |
GlobalTypeCollection(array<GlobalType[], Boolean) | Creates a strongly-typed collection of global objects. | |
GlobalTypeCollection(GlobalTypeCollection, Boolean) | Creates a strongly-typed collection of global objects. |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the number of items in this collection. | |
Empty | Gets an empty instance of this collection. | |
IsFixedSize | Gets whether or not this collection's size can be changed. | |
IsReadOnly | Gets whether the collection is read-only. | |
IsSynchronized | Determines whether this collection is synchronized for multi-threaded access. | |
Item | Gets an item at the specified position. | |
SyncRoot | Returns an object to use for thread-safe access. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds a new item to the collection. | |
AddRange(array<GlobalType[]) | Adds a range of items to the collection. | |
AddRange(GlobalTypeCollection) | Adds a range of items to the collection. | |
Clear | Clears the contents of this collection. | |
Contains | Determines whether the specified item is in the collection | |
CopyTo | Copies the contents of this collection to the given array starting at the given index. | |
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.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator you can use to enumerate through this collection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Get the position of the specified item. | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
Insert | Inserts an item into the underlying list at the specified position. | |
Remove | Remove an item from the collection. | |
RemoveAt | Removes the item at the specified position. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | Adds an item to the collection. | |
IList.Contains | Determines whether the specified item is in the collection. | |
ICollection.CopyTo | Copies objects to the specified array starting at the specified position. | |
IList.IndexOf | Gets the position of an item in the collection. | |
IList.Insert | Inserts an object in the collection at the specified position. | |
IList.Item | Gets or sets the item at the specified position in the collection. | |
IList.Remove | Removes an item from the collection. |
Top
Remarks
The collection can be read-write or read-only. A read-write collection can be cheaply passed to the constructor of GlobalTypeCollection to make a read only version without copying the collection.
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.