ReadOnlyCollection<T>.ICollection<T>.Remove(T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 ICollection<T>移除第一個出現的特定物件。 此實作總是拋 NotSupportedException出 。
virtual bool System.Collections.Generic.ICollection<T>.Remove(T value) = System::Collections::Generic::ICollection<T>::Remove;
bool ICollection<T>.Remove(T value);
abstract member System.Collections.Generic.ICollection<T>.Remove : 'T -> bool
override this.System.Collections.Generic.ICollection<T>.Remove : 'T -> bool
Function Remove (value As T) As Boolean Implements ICollection(Of T).Remove
參數
- value
- T
要從 中移除 ICollection<T>的物件。
傳回
true 若 value 成功從 ICollection<T>中移除;,否則, false。
實作
例外狀況
總是被拋出。
備註
此成員為明確介面成員實作。 它只能在實 ReadOnlyCollection<T> 例投射到 ICollection<T> 介面時使用。