MultipartIndex Of Method
Get the index of an entity.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The index of the specified entity if found; otherwise -1.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int IndexOf(
MimeEntity entity
)Parameters
- entity MimeEntity
- The MIME entity.
Return Value
Int32The index of the specified entity if found; otherwise -1.
Implements
IListTIndexOf(T)Remarks
Finds the index of the specified entity, if it exists.
Exceptions
| ArgumentNullException | entity is . |
| ObjectDisposedException | The Multipart has been disposed. |