System::Net::Dns::BeginGetHostAddresses method

Dns::BeginGetHostAddresses 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::BeginGetHostAddresses(String hostNameOrAddress, AsyncCallback requestCallback, System::SharedPtr<Object> state)
ParameterTypeDescription
hostNameOrAddressStringA string that contains a hostname or IP address.
requestCallbackAsyncCallbackA callback to be called when the operation completes.
stateSystem::SharedPtr<Object>User-provided data used to uniquely identify each asynchronous operation.

ReturnValue

An IAsyncResult object representing the initiated asynchronous operation.

See Also