MimeTextMatchCollection.Remove(MimeTextMatch) 方法

定义

MimeTextMatch 中移除指定的 MimeTextMatchCollection 的第一个匹配项。Removes the first occurrence of the specified MimeTextMatch from the 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

要从该集合中移除的 MimeTextMatchThe MimeTextMatch to remove from the collection.

示例

下面的示例演示 Remove 方法的用法。The following example demonstrates the use of the Remove method.

MimeText_Match_MatchColl_9 # 6MimeText_Match_MatchColl_9#6

注解

此方法执行线性搜索;因此,平均执行时间与成正比 CountThis method performs a linear search; therefore, the average execution time is proportional to Count.

跟随删除的元素 MimeTextMatch 上移以占据空出的位置。The elements that follow the removed MimeTextMatch move up to occupy the vacated spot.

适用于