ConditionalWeakTable<TKey,TValue>.Remove 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| Remove(TKey) | 从表中移除某个键及其值。 | 
| Remove(TKey, TValue) | 
Remove(TKey)
- Source:
- ConditionalWeakTable.cs
- Source:
- ConditionalWeakTable.cs
- Source:
- ConditionalWeakTable.cs
- Source:
- ConditionalWeakTable.cs
从表中移除某个键及其值。
public:
 bool Remove(TKey key);public bool Remove(TKey key);member this.Remove : 'Key -> boolPublic Function Remove (key As TKey) As Boolean参数
- key
- TKey
要移除的键。
返回
如果找到并移除该键,则为 true;否则为 false。
例外
              key 为 null。
注解
如果在此操作期间对密钥进行垃圾回收,该方法不会引发异常,并且返回值未定义。
适用于
Remove(TKey, TValue)
- Source:
- ConditionalWeakTable.cs
public:
 bool Remove(TKey key, [Runtime::InteropServices::Out] TValue % value);public bool Remove(TKey key, out TValue value);member this.Remove : 'Key * 'Value -> boolPublic Function Remove (key As TKey, ByRef value As TValue) As Boolean参数
- key
- TKey
- value
- TValue