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 の後に続く要素は、空いたスポットを占有するために上に移動します。

適用対象