MultipartInsert Method

Insert an entity into the Multipart at the specified index.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Insert(
	int index,
	MimeEntity entity
)

Parameters

index  Int32
The index.
entity  MimeEntity
The MIME entity.

Implements

IListTInsert(Int32, T)

Remarks

Inserts the part into the multipart at the specified index.

Exceptions

ArgumentNullException entity is .
ArgumentOutOfRangeException index is out of range.
ObjectDisposedException The Multipart has been disposed.

See Also