MailBee.NET Objects 7.2

DnsServer Constructor (String, Int32)

Initializes a new instance of the DnsServer class with the given IP address string and priority value.

public DnsServer(
   string host,
   int priority
);

Parameters

host
IP address of the DNS server.
priority
A preference of the DNS server. Lower values are preferred.

Remarks

You can find more information on the server priority in SortableByPriorityCollection class documentation.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException host is not a valid IP address string.

See Also

DnsServer Class | MailBee.DnsMX Namespace | DnsServer Constructor Overload List | SortableByPriorityCollection