Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Net.​Sockets.​LingerOption
Assembly: System.Net.Sockets
Inheritance: object → LingerOption
Specifies whether a <see cref="T:System.Net.Sockets.Socket" /> will remain connected after a call to the <see cref="M:System.Net.Sockets.Socket.Close" /> or <see cref="M:System.Net.Sockets.TcpClient.Close" /> methods and the length of time it will remain connected, if data remains to be sent.
Properties
public
bool
Enabled
Gets or sets a value that indicates whether to linger after the <see cref="T:System.Net.Sockets.Socket" /> is closed.
public
int
LingerTime
Gets or sets the amount of time to remain connected after calling the <see cref="M:System.Net.Sockets.Socket.Close" /> method if data remains to be sent.
Methods
public
bool
Equals​(object comparand)
Determines whether the specified object is equal to the current <see cref="T:System.Net.Sockets.LingerOption" /> instance.
Returns <see langword="true" /> if the specified object is equal to the current <see cref="T:System.Net.Sockets.LingerOption" /> instance; otherwise, <see langword="false" /> .
comparand
The object to compare with the current <see cref="T:System.Net.Sockets.LingerOption" /> instance.
public
int
GetHashCode​()
Returns a hash value for a <see cref="T:System.Net.Sockets.LingerOption" /> instance.
Returns An integer hash value.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object