HeaderListReplace(String, String) Method

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

Definition

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

Parameters

field  String
The name of the header field.
value  String
The header value.

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.

Exceptions

ArgumentNullException

field is .

-or-

value is .

ArgumentException The field contains illegal characters.

See Also