public IrDAClient(
string service
)
Public Sub New (
service As String
)
public:
IrDAClient(
String^ service
)
new :
service : string -> IrDAClient
This is equivalent to calling the default constructor followed by Connect(String).
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 the IrDAClient(IrDAEndPoint) overload.
Infrared connections are made by specifying a Service Name, which can be any value provided the participating devices refer the same name.
See Connect(String) for the errors that can occur.