Click or drag to resize
MimeKit

HeaderListReplace(HeaderId, String) Method

Replace all headers with identical field names with the single specified header.

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

Parameters

id  HeaderId
The header identifier.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeExceptionid is not a valid HeaderId.
Remarks

Replaces all headers with identical field names with the single specified header.

If no headers with the specified field name exist, it is simply added.

See Also