WeakCollection<T> Class
Microsoft internal use only.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.PlatformUI.WeakCollection<T>
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Class WeakCollection(Of T As Class) _
Implements IEnumerable(Of T), IEnumerable
public class WeakCollection<T> : IEnumerable<T>,
IEnumerable
where T : class
Type Parameters
- T
The WeakCollection<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WeakCollection<T> | Microsoft internal use only. |
Top
Methods
Name | Description | |
---|---|---|
Add | Microsoft internal use only. Adds a WeakReference to the item to the collection. | |
Clear | Microsoft internal use only. Clears all items from the list. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAliveItemsCount | Gets the number of strong references remaining in the collection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove | Microsoft internal use only. Removes an item from the underlying collection, if it exists. | |
ToList | Gets a list containing strong references to the items in this collection. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable<T>.GetEnumerator | Microsoft internal use only. | |
IEnumerable.GetEnumerator | Microsoft internal use only. |
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.