Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Dns::EndGetHostEntry Method (IAsyncResult^)

 

Ends an asynchronous request for DNS information.

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

public:
static IPHostEntry^ EndGetHostEntry(
	IAsyncResult^ asyncResult
)

Parameters

asyncResult
Type: System::IAsyncResult^

An IAsyncResult instance returned by a call to an BeginGetHostEntry method.

Return Value

Type: System.Net::IPHostEntry^

An IPHostEntry instance that contains address information about the host.

Exception Condition
ArgumentNullException

asyncResult is null.

This method blocks until the operation is complete.

The Aliases property of the IPHostEntry instance returned is not populated by this method and will always be empty.

To perform this operation synchronously, use a GetHostEntry method.

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft