System::Net::Dns::BeginGetHostEntry method

Dns::BeginGetHostEntry(String, AsyncCallback, System::SharedPtr<Object>) method

Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified string that contains a host name or IP address.

static System::SharedPtr<IAsyncResult> System::Net::Dns::BeginGetHostEntry(String hostNameOrAddress, AsyncCallback requestCallback, System::SharedPtr<Object> stateObject)
ParameterTypeDescription
hostNameOrAddressStringThe string that contains a hostname or IP address.
requestCallbackAsyncCallbackA callback to be called when the operation completes.
stateObjectSystem::SharedPtr<Object>User-provided data used to uniquely identify each asynchronous operation.

ReturnValue

An IAsyncResult object representing the initiated asynchronous operation.

See Also

Dns::BeginGetHostEntry(System::SharedPtr<IPAddress>, AsyncCallback, System::SharedPtr<Object>) method

Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified IP address.

static System::SharedPtr<IAsyncResult> System::Net::Dns::BeginGetHostEntry(System::SharedPtr<IPAddress> address, AsyncCallback requestCallback, System::SharedPtr<Object> stateObject)
ParameterTypeDescription
addressSystem::SharedPtr<IPAddress>The IP address.
requestCallbackAsyncCallbackA callback to be called when the operation completes.
stateObjectSystem::SharedPtr<Object>User-provided data used to uniquely identify each asynchronous operation.

ReturnValue

An IAsyncResult object representing the initiated asynchronous operation.

See Also