Socket.Close Method (Int32)
Closes the Socket connection and releases all associated resources with a specified timeout to allow queued data to be sent.
Assembly: System.Net (in System.Net.dll)
For connection-oriented protocols, it is recommended that you call Shutdown before calling the Close method. This ensures that all data is sent and received on the connected socket before it is closed.
If you need to call Close without first calling Shutdown, you can ensure that data queued for outgoing transmission will be sent by calling the Close method and specifying a non-zero timeout interval. The Close method will then block until this data is sent or until the specified timeout expires.
A Socket instance cannot be reused.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.