SynchronizedReadOnlyCollection<T>.ICollection<T>.Clear 方法

定義

如果呼叫,則會擲回 NotSupportedException

 virtual void System.Collections.Generic.ICollection<T>.Clear() = System::Collections::Generic::ICollection<T>::Clear;
void ICollection<T>.Clear ();
abstract member System.Collections.Generic.ICollection<T>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<T>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of T).Clear

實作

例外狀況

這些項目無法從唯讀的集合中清除。

備註

這些項目無法從唯讀的集合中清除。

適用於