Click or drag to resize
MimeKit

AttachmentCollectionIndexOf Method

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

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
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)
Exceptions
ExceptionCondition
ArgumentNullExceptionattachment is null.
Remarks
Finds the index of the specified attachment, if it exists.
See Also