SynchronizedReadOnlyCollection<T>.ICollection<T>.Add(T) 方法

定義

如果呼叫,則會擲回 NotSupportedException

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

參數

value
T

要新增到集合的項目。

實作

例外狀況

這些項目無法在唯讀的集合中設定。

備註

這些項目無法加入至唯讀的集合中。

適用於