SocketTools .NET Edition

WhoisClient.AutoResolve Property

Gets and sets a value that determines if host names and addresses are automatically resolved.

[Visual Basic]
Public Property AutoResolve As Boolean
[C#]
public bool AutoResolve {get; set;}

Property Value

Returns true if host names are automatically resolved to Internet addresses. The default value is false.

Remarks

Setting the AutoResolve property determines if the class automatically resolves host names and addresses specified by the HostName and HostAddress properties. If set to true, setting the HostName property will cause the class to automatically determine the corresponding IP address and update the HostAddress property accordingly. Likewise, setting the HostAddress property will cause the class to determine the host name and update the HostName property. Setting this property to false prevents the class from resolving host names until a connection attempt is made.

It is important to note that setting the HostName or HostAddress property may cause the current thread to block, sometimes for several seconds, until the name or address is resolved. To prevent this behavior, set this property value to false.

See Also

WhoisClient Class | SocketTools Namespace