Click or drag to resize
MimeKit

HeaderListInsert(Int32, String, String) Method

Insert a header with the specified field and value at the given index.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Insert(
	int index,
	string field,
	string value
)

Parameters

index  Int32
The index to insert the header.
field  String
The name of the header field.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullException

field is null.

-or-

value is null.

ArgumentException The field contains illegal characters.
ArgumentOutOfRangeExceptionindex is out of range.
Remarks
Inserts the header at the specified index in the list.
See Also