GlobalDnsServers Property
Gets the list of DNS servers to use in addition to any DNS servers in the config file.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public static DnsServerCollection DnsServers { get; }

Property Value

Type: DnsServerCollection
A collection of DNS servers which will be added to the entries found in the config file. The default value is an empty collection.
Remarks

This property affects how Autodetect method and Autodetect(DnsAutodetectOptions) method with ConfigFiles flag set work.

When this collection is non-empty and MailBee is asked to get the DNS servers from the config file, MailBee will append entries from this collection to the entries found in the config file. This is useful for .NET Core, UWP, Xamarin where app.config is not available or you need to set the servers in runtime and it's not possible to auto-detect them. So, even if you don't have any app.config at all, you can mimic having some entries there by populating DnsServers collection.

See Also