Header ListInsert(Int 32, String, Encoding, String) Method
Insert a header with the specified field and value at the given index.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Insert(
int index,
string field,
Encoding encoding,
string value
)Parameters
Remarks
Inserts the header at the specified index in the list.
Exceptions
| ArgumentNullException |
field is . -or- encoding is . -or- value is . |
| ArgumentException | The field contains illegal characters. |
| ArgumentOutOfRangeException | index is out of range. |