Share via


MimeTextMatchCollection.Remove(MimeTextMatch) 方法

定義

MimeTextMatch 中移除指定 MimeTextMatchCollection 的第一個符合項目。

public:
 void Remove(System::Web::Services::Description::MimeTextMatch ^ match);
public void Remove (System.Web.Services.Description.MimeTextMatch match);
member this.Remove : System.Web.Services.Description.MimeTextMatch -> unit
Public Sub Remove (match As MimeTextMatch)

參數

match
MimeTextMatch

要從集合中移除的 MimeTextMatch

範例

下列範例示範 Remove 方法的用法。

MimeText_Match_MatchColl_9#6

備註

這個方法會執行線性搜尋;因此,平均執行時間與 成正比 Count

移除 MimeTextMatch 後的元素會向上移動,以佔用空空的地點。

適用於