Click or drag to resize
MimeKit

HeaderListInsert(Int32, HeaderId, String) Method

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

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

Parameters

index  Int32
The index to insert the header.
id  HeaderId
The header identifier.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeException

id is not a valid HeaderId.

-or-

index is out of range.

Remarks
Inserts the header at the specified index in the list.
See Also