WeakCollection<T> Class

Definition

Microsoft internal use only.

generic <typename T>
 where T : classpublic ref class WeakCollection : System::Collections::Generic::IEnumerable<T>
public class WeakCollection<T> : System.Collections.Generic.IEnumerable<T> where T : class
type WeakCollection<'T (requires 'T : null)> = class
    interface seq<'T (requires 'T : null)>
    interface IEnumerable
Public Class WeakCollection(Of T)
Implements IEnumerable(Of T)

Type Parameters

T
Inheritance
WeakCollection<T>
Implements

Constructors

WeakCollection<T>()

Microsoft internal use only.

Methods

Add(T)

Microsoft internal use only. Adds a WeakReference to the item to the collection.

Clear()

Microsoft internal use only. Clears all items from the list.

GetAliveItemsCount()

Gets the number of strong references remaining in the collection.

Remove(T)

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.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Microsoft internal use only.

IEnumerable<T>.GetEnumerator()

Microsoft internal use only.

Applies to