Dns.GetHostByAddress Method (IPAddress)

 
Note: This API is now obsolete.

Creates an IPHostEntry instance from the specified IPAddress.

Namespace:   System.Net
Assembly:  System (in System.dll)

[<ObsoleteAttribute("GetHostByAddress is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetHostByAddress : 
        address:IPAddress -> IPHostEntry

Parameters

address
Type: System.Net.IPAddress

An IPAddress.

Return Value

Type: System.Net.IPHostEntry

An IPHostEntry.

An IPHostEntry instance.

Exception Condition
ArgumentNullException

address is null.

SocketException

An error is encountered when resolving address.

System_CAPS_noteNote

This member emits trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.

The following example creates a IPHostEntry from an IPAddress.

No code example is currently available or this language may not be supported.

DnsPermission

for accessing DNS information. Associated enumeration: PermissionState.Unrestricted

.NET Framework
Available since 1.1
Return to top
Show: