次の方法で共有


WeakCollection<T>.Remove(T) Method

Definition

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.

Applies to