Header ListReplace(Header Id, Encoding, 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(
HeaderId id,
Encoding encoding,
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 |
encoding is . -or- value is . |
| ArgumentOutOfRangeException | id is not a valid HeaderId. |