Gets the name of the peer device using the specified socket.
- irdaSocket (Socket)
- A connected IrDA Socket.
The name of the remote device.
This finds the name of the device to which the socket is connection,
an exception will occur if the socket is not connected.
| Exception | Condition |
|---|---|
| ArgumentNullException |
s is null (Nothing in Visual Basic).
|
| ArgumentOutOfRangeException |
The remote device is not present in the list of discovered devices.
|
| InvalidOperationException |
The socket is not connected.
|