Closes the System.Net.Sockets.NetworkStream after waiting the specified time to allow data to be sent.
The NetworkStream.Close(int) method frees both unmanaged and managed resources associated with the System.Net.Sockets.NetworkStream. If the System.Net.Sockets.NetworkStream owns the underlying System.Net.Sockets.Socket, it is closed as well.
If a System.Net.Sockets.NetworkStream was associated with a System.Net.Sockets.TcpClient, the NetworkStream.Close(int) method will close the TCP connection, but not dispose of the associated System.Net.Sockets.TcpClient.