Domain List(IEnumerableString) Constructor
Initialize a new instance of the DomainList class.
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 DomainList(
IEnumerable<string> domains
)Parameters
- domains IEnumerableString
- A domain list.
Remarks
Creates a new DomainList based on the domains provided.
Each entry must be a nonempty dot-atom or bracketed domain literal, without whitespace or control characters. Internationalized domains and single-label names are supported. Values are not trimmed or checked against DNS.
Exceptions
| ArgumentNullException | domains is . |
| ArgumentException | domains contains a null, empty or syntactically invalid domain. |