MailBee.NET Objects 4.0

DnsServerCollection.Add Method (String)

Adds a top (0) priority DNS server under the specified IP address to the collection and sorts the collection according to the elements priorities.

public DnsServer Add(
   string host
);

Parameters

host
IP address of the DNS server to be added to the collection. The value cannot be a null reference (Nothing in Visual Basic).

Return Value

A reference to DnsServer object which was created based on the given parameter values and then added to the collection.

Exceptions

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

See Also

DnsServerCollection Class | MailBee.DnsMX Namespace | DnsServerCollection.Add Overload List