Click or drag to resize
MimeKit

MultipartIndexOf Method

Get the index of an entity.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public int IndexOf(
	MimeEntity entity
)

Parameters

entity  MimeEntity
The MIME entity.

Return Value

Int32
The index of the specified entity if found; otherwise -1.

Implements

IListTIndexOf(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionentity is null.
ObjectDisposedException The Multipart has been disposed.
Remarks
Finds the index of the specified entity, if it exists.
See Also