語言

MimePartCollection.Remove(MimePart) 方法

定義

從 MimePart移除指定 MimePartCollection 的第一個專案。

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 的元素會往上移動,佔據空出的位置。

適用於