Header SetAdd Range(IEnumerableString) Method
Add a collection of headers.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public void AddRange(
IEnumerable<string> headers
)Parameters
- headers IEnumerableString
- The headers to add.
Remarks
Adds the specified headers to the set of headers.
Exceptions
| ArgumentNullException | headers is . |
| ArgumentException | One or more of the specified headers is invalid. |
| InvalidOperationException | The operation is invalid because the HeaderSet is read-only. |