DictionaryExtensions.Remove<TK,TV> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 ConcurrentDictionary 中删除密钥
public:
generic <typename TK, typename TV>
[System::Runtime::CompilerServices::Extension]
static void Remove(System::Collections::Concurrent::ConcurrentDictionary<TK, TV> ^ dictionary, TK key);
public static void Remove<TK,TV> (this System.Collections.Concurrent.ConcurrentDictionary<TK,TV> dictionary, TK key);
static member Remove : System.Collections.Concurrent.ConcurrentDictionary<'K, 'V> * 'K -> unit
<Extension()>
Public Sub Remove(Of TK, TV) (dictionary As ConcurrentDictionary(Of TK, TV), key As TK)
类型参数
- TK
字典参数键的类型
- TV
字典参数值的类型
参数
- dictionary
- ConcurrentDictionary<TK,TV>
dictionary
- key
- TK
key