MailBee.NET Objects 4.0

DnsServerCollection.Autodetect Method (DnsAutodetectOptions)

Clears and then populates the collection with DnsServer objects by looking up the specified sources.

public bool Autodetect(
   DnsAutodetectOptions options
);

Parameters

options
The sources to look DNS server definitons for.

Return Value

true if at least one DNS server was found; otherwise, false.

Remarks

Once at least one DNS server definition is found, these definitions are added to the collection as DnsServer objects, and the method returns.

Note   WMI database search requires Full trust for MailBee assembly. If the current security setting is lower than Full trust, WMI database search won't find any DNS server definitions.

See Also

DnsServerCollection Class | MailBee.DnsMX Namespace | DnsServerCollection.Autodetect Overload List | DnsAutodetectOptions