ConditionalWeakTable<TKey,TValue>.Remove(TKey) 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 a key and its value from the table.
public:
bool Remove(TKey key);
public bool Remove (TKey key);
member this.Remove : 'Key -> bool
Public Function Remove (key As TKey) As Boolean
Parameters
- key
- TKey
The key to remove.
Returns
true
if the key is found and removed; otherwise, false
.
Exceptions
key
is null
.
Remarks
If the key is garbage-collected during this operation, the method does not raise an exception and the return value is undefined.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.