WeakCollection<T>::Remove Method (T)

 

Microsoft internal use only. Removes an item from the underlying collection, if it exists.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
bool Remove(
	T item
)

Parameters

item
Type: T

The item to remove.

Return Value

Type: System::Boolean

Returns true if the item was found and removed; otherwise returns false.

This is 0(n), where n is the number of WeakReferences currently in the list.

Return to top
Show: