Share via


ReadOnlyDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.Remove 方法

從字典中移除指定的項目。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
Private Function Remove ( _
    item As KeyValuePair(Of TKey, TValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove
bool ICollection<KeyValuePair<TKey, TValue>>.Remove(
    KeyValuePair<TKey, TValue> item
)

參數

傳回值

類型:System.Boolean
如果從字典,成功移除項目則為 true;則為,否則為 false。

實作

ICollection<T>.Remove(T)

.NET Framework 安全性

請參閱

參考

ReadOnlyDictionary<TKey, TValue> 類別

Microsoft.TeamFoundation.Client 命名空間