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

定義

將指定的項目加入至這個不可變的資料集中。Adds the specified element to this immutable set.

public:
 System::Collections::Immutable::IImmutableSet<T> ^ Add(T value);
public System.Collections.Immutable.IImmutableSet<T> Add (T value);
abstract member Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
Public Function Add (value As T) As IImmutableSet(Of T)

參數

value

要加入的項目。The element to add.

傳回

含有已加入項目的新資料集,如果項目已經存在於資料集中,則為這個資料集。A new set with the element added, or this set if the element is already in the set.

適用於