Compartir a través de


WeakCollection<T>.GetAliveItemsCount Method

Gets the number of strong references remaining in the collection.

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

Syntax

'Declaración
Public Function GetAliveItemsCount As Integer
public int GetAliveItemsCount()

Return Value

Type: System.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