Click or drag to resize
MimeKit

HeaderListReplace(String, Encoding, String) Method

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

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

Parameters

field  String
The name of the header field.
encoding  Encoding
The character encoding to use for the value.
value  String
The header value.
Exceptions
ExceptionCondition
ArgumentNullException

field is .

-or-

encoding is .

-or-

value is .

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