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>
字典
- key
- TK
索引鍵