Adds a DNS server under the specified IP address and with a particular priority to the collection and sorts the collection according to the elements priorities.
A reference to DnsServer object which was created based on the given parameter values and then added to the collection.
It's recommended to add elements from higher priority to lower priority. Thus, the elements will stay in the same order as they were added.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | host is not a valid IP address string. |
DnsServerCollection Class | MailBee.DnsMX Namespace | DnsServerCollection.Add Overload List