Share via


WeakCollection<T>.GetAliveItemsCount Method

Gets the number of strong references remaining in the collection.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Function GetAliveItemsCount As Integer
public int GetAliveItemsCount()
public:
int GetAliveItemsCount()
member GetAliveItemsCount : unit -> int
public function GetAliveItemsCount() : int

Return Value

Type: Int32
Returns the number of strong references.

Remarks

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

.NET Framework Security

See Also

Reference

WeakCollection<T> Class

Microsoft.VisualStudio.PlatformUI Namespace