|DnsServerCollectionAdd Method (String, Int32)|
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.
MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public DnsServer Add(
Public Function Add (
host As String,
priority As Integer
) As DnsServer
- Type: SystemString
IP address of the DNS server to be added to the collection.
The value cannot be a null reference (Nothing in Visual Basic).
- Type: SystemInt32
A preference of the DNS server. Lower values are preferred.
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.