Gets or sets the amount of time to remain connected after the Socket.Close method is called.
A int that contains the amount of time, in seconds, to remain connected after calling the Socket.Close method.
When setting the SocketOptionName.Linger option of an instance of the System.Net.Sockets.Socket class, a ArgumentException exception is thrown if the LingerOption.LingerTime property is less than zero or greater than ushort.MaxValue .
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0