แก้ไข

แชร์ผ่าน


ReadOnlyCollection<T>.ICollection<T>.Remove(T) Method

Definition

Removes the first occurrence of a specific object from the ICollection<T>. This implementation always throws 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

Parameters

value
T

The object to remove from the ICollection<T>.

Returns

true if value was successfully removed from the ICollection<T>; otherwise, false.

Implements

Exceptions

Always thrown.

Remarks

This member is an explicit interface member implementation. It can be used only when the ReadOnlyCollection<T> instance is cast to an ICollection<T> interface.

Applies to