IrDAClientBeginConnect(String, AsyncCallback, Object) Method

Begins an asynchronous request for a remote host connection. The remote host is specified by a service name (string).

Definition

Namespace: InTheHand.Net.Sockets
Assembly: InTheHand.Net.IrDA (in InTheHand.Net.IrDA.dll) Version: 4.0.2+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public IAsyncResult BeginConnect(
	string service,
	AsyncCallback requestCallback,
	Object state
)

Parameters

service  String
The service name of the remote host.
requestCallback  AsyncCallback
An AsyncCallback delegate that references the method to invoke when the operation is complete.
state  Object
A user-defined object that contains information about the connect operation. This object is passed to the requestCallback delegate when the operation is complete.

Return Value

IAsyncResult
An IAsyncResult that represents the asynchronous connect, which could still be pending.

Remarks

See Connect(String) for the errors that can occur.

See Also