ImmutableList<T>.Clear 方法

定義

從不可變清單中移除所有元素。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Clear();
public System.Collections.Immutable.ImmutableList<T> Clear ();
member this.Clear : unit -> System.Collections.Immutable.ImmutableList<'T>
Public Function Clear () As ImmutableList(Of T)

傳回

空白清單保留此實體擁有的相同排序或未排序的語意。

適用於