SynchronizedReadOnlyCollection<T>.ICollection<T>.Clear SynchronizedReadOnlyCollection<T>.ICollection<T>.Clear SynchronizedReadOnlyCollection<T>.ICollection<T>.Clear Method

定义

如果调用,会引发 NotSupportedExceptionThrows a NotSupportedException if called.

 virtual void System.Collections.Generic.ICollection<T>.Clear() = System::Collections::Generic::ICollection<T>::Clear;
void ICollection<T>.Clear ();
Sub Clear () Implements ICollection(Of T).Clear

实现

异常

不能清除只读集合中的项。Items cannot be cleared from a read-only collection.

注解

不能清除只读集合中的项。Items cannot be cleared from a read-only collection.

适用于