Modifica

Condividi tramite


MimePartCollection.Remove(MimePart) Method

Definition

Removes the first occurrence of the specified MimePart from the 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)

Parameters

mimePart
MimePart

The MimePart to remove from the collection.

Examples

The following example demonstrates a typical use of the Remove method.

MimePartCollection_8#8

Remarks

This method performs a linear search; therefore, the average execution time is proportional to Count.

The elements that follow the removed MimePart move up to occupy the vacated spot.

Applies to