In The Hand
Connect Method (service)
NamespacesInTheHand.Net.SocketsIrDAClientConnect(String)
.NET Components for Mobility
Forms a connection to the specified service on an arbitrary peer.
Declaration Syntax
C#Visual Basic
public void Connect(
	string service
)
Public Sub Connect ( _
	service As String _
)
Parameters
service (String)
The Service Name to connect to eg "OBEX". In the very uncommon case where a connection is to be made to a specific LSAP-SEL (port number), then use the form "LSAP-SELn", where n is an integer.
Remarks
As noted the connection will be made to an arbitrary peer. This is most useful when it is expected that there will be only one device in range — as is often the case. If a connection is to be made to a particular remote peer, then use Connect(IrDAEndPoint).
Exceptions
ExceptionCondition
InvalidOperationException No peer IrDA device was found. The exception has message “No device”.
SocketException A connection could not be formed. See the exception message or SocketErrorCode (or ErrorCode on NETCF) for what error occurred.

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 3.0.0.0