WeakCollection<T>.GetAliveItemsCount Method

Definition

Return the number of strong references remaining in the collection. Note that this is O(n), where n is the number of WeakReferences currently in the list.

public:
 int GetAliveItemsCount();
public:
 int GetAliveItemsCount();
int GetAliveItemsCount();
public int GetAliveItemsCount ();
member this.GetAliveItemsCount : unit -> int
Public Function GetAliveItemsCount () As Integer

Returns

Returns the number of strong references.

Remarks

Note that this is 0(n), where n is the number of WeakReferences currently in the list.

Applies to