In The Hand
Close Method
NamespacesInTheHand.Net.SocketsIrDAClientClose()()()
.NET Components for Mobility
Closes the IrDAClient and the underlying connection.
Declaration Syntax
C#Visual Basic
public void Close()
Public Sub Close
Remarks
The two XxxxxClient classes produced by Microsoft (TcpClient, and IrDAClient in the NETCF) have various documented behaviours and various actual behaviours for close/dispose/finalize on the various platforms. :-( The current TcpClient implementation is that Close/Dispose closes the connection by closing the underlying socket and/or NetworkStream, and finalization doesn't close either. This is the behaviour we use for the here (for BluetoothClient, IrDAClient). (The documentation in MSDN for TcpClient is still wrong by-the-way, see Microsoft feedback #158480).

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