MimePartCollection.Remove(MimePart) Method

Definition

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

C#
public void Remove(System.Web.Services.Description.MimePart 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

Производ Верзије
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)