MimePartCollection.Remove Method (MimePart)

 

Removes the first occurrence of the specified MimePart from the MimePartCollection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public void Remove(
	MimePart mimePart
)

Parameters

mimePart
Type: System.Web.Services.Description.MimePart

The MimePart to remove from the collection.

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.

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

MimePartCollection_8#8

.NET Framework
Available since 1.1
Return to top
Show: