MatchCollection.ICollection<Match>.Clear 方法

定義

呼叫這個方法一律會擲回 NotSupportedException

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

實作

例外狀況

集合是唯讀的。

備註

Count 必須設定為 0,而且必須釋放集合元素中其他物件的參考。

適用於