语言

MimePartCollection.Remove(MimePart) 方法

定义

从 中移除指定的第一个匹配项。

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

参数

mimePart
MimePart

要 MimePart 从集合中移除的集合。

示例

以下示例演示了该方法的典型用法 Remove 。

MimePartCollection_8#8

注解

此方法执行线性搜索;因此,平均执行时间与 Count.

删除 MimePart 后的元素向上移动以占用空置的位置。

适用于