 | AttachmentCollectionIndexOf Method |
Get the index of the requested attachment, if it exists.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic int IndexOf(
MimeEntity attachment
)
Parameters
- attachment MimeEntity
- The attachment.
Return Value
Int32The index of the requested attachment; otherwise
Field Value
Int32-1.
Implements
IListTIndexOf(T)
Exceptions
Remarks
Finds the index of the specified attachment, if it exists.
See Also