Header ListReplace(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
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void Replace(
string field,
string value
)Parameters
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. |