Header ListIndex Of(Header Id) Method
Get the index of the requested header, if it exists.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The index of the requested header; otherwise
-1.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int IndexOf(
HeaderId id
)Parameters
- id HeaderId
- The header id.
Return Value
Int32The index of the requested header; otherwise
Field Value
Int32-1.
Remarks
Finds the first index of the specified header, if it exists.
Exceptions
| ArgumentOutOfRangeException | id is not a valid HeaderId. |