System::Net::Dns::BeginResolve method

Dns::BeginResolve method

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

static System::SharedPtr<IAsyncResult> System::Net::Dns::BeginResolve(String hostName, AsyncCallback requestCallback, System::SharedPtr<Object> stateObject)
ParameterTypeDescription
hostNameStringA host name that is used to create a new instance of the IPHostEntry class.
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