AttachmentCollectionIndexOf Method

Get the index of the requested attachment, if it exists.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int IndexOf(
	MimeEntity attachment
)

Parameters

attachment  MimeEntity
The attachment.

Return Value

Int32
The index of the requested attachment; otherwise

Field Value

Int32
-1.

Implements

IListTIndexOf(T)

Remarks

Finds the index of the specified attachment, if it exists.

Exceptions

ArgumentNullException attachment is .

See Also