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);
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.