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 后的元素会向上移动,以占用空位。

适用于