MatchCollection.ICollection<Match>.Remove(Match) 方法

定義

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

 virtual bool System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>.Remove(System::Text::RegularExpressions::Match ^ item) = System::Collections::Generic::ICollection<System::Text::RegularExpressions::Match ^>::Remove;
bool ICollection<Match>.Remove (System.Text.RegularExpressions.Match item);
abstract member System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>.Remove : System.Text.RegularExpressions.Match -> bool
override this.System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>.Remove : System.Text.RegularExpressions.Match -> bool
Function Remove (item As Match) As Boolean Implements ICollection(Of Match).Remove

參數

item
Match

要從集合中移除的物件。

傳回

如果已順利從集合中移除 item 則為 true,否則為 false。 如果在原始集合中找不到 item,則這個方法也會傳回 false

實作

例外狀況

集合是唯讀的。

適用於