Begins an asynchronous request for a remote host connection.
The remote host is specified by a service name (string).
| C# | Visual Basic |
public IAsyncResult BeginConnect( string service, AsyncCallback requestCallback, Object state )
Public Function BeginConnect ( _ service As String, _ requestCallback As AsyncCallback, _ state As Object _ ) As IAsyncResult
- 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.
[Missing <returns> documentation for "M:InTheHand.Net.Sockets.IrDAClient.BeginConnect(System.String,System.AsyncCallback,System.Object)"]
| Exception | Condition |
|---|---|
|
See Connect(string)
for the errors that can occur.
|