Click or drag to resize
MimeKit

HeaderListReplace(String, String) Method

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

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

Parameters

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.
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