ICollection<T>.Add(T) ICollection<T>.Add(T) ICollection<T>.Add(T) ICollection<T>.Add(T) Method

定義

將項目加入至 ICollection<T>Adds an item to the ICollection<T>.

public:
 void Add(T item);
public void Add (T item);
abstract member Add : 'T -> unit
Public Sub Add (item As T)

參數

item

要加入至 ICollection<T> 的物件。The object to add to the ICollection<T>.

例外狀況

適用於

另請參閱