WeakCollection<T>.Remove(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes an item from the underlying collection, if it exists. This is O(n), where n is the number of WeakReferences currently in the list.
public:
bool Remove(T item);
public:
bool Remove(T item);
bool Remove(T item);
public bool Remove (T item);
member this.Remove : 'T -> bool
Public Function Remove (item As T) As Boolean
Parameters
- item
- T
The item to remove from the collection.
Returns
True if the item was found and removed, otherwise false.
Remarks
This is 0(n), where n is the number of WeakReferences currently in the list.