MultipartRemove Method

Remove an entity from the multipart.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool Remove(
	MimeEntity entity
)

Parameters

entity  MimeEntity
The MIME entity to remove.

Return Value

Boolean
if the part was removed; otherwise, .

Implements

ICollectionTRemove(T)

Remarks

Removes the specified entity if it exists within the multipart.

Exceptions

ArgumentNullException entity is .
ObjectDisposedException The Multipart has been disposed.

See Also