Header SetAdd Range(IEnumerableHeader Id) 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<HeaderId> headers
)Parameters
- headers IEnumerableHeaderId
- 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. |