System.Net.Sockets.SocketException public class SocketException : Win32Exception Documentation Code public SocketError SocketErrorCode { get; } public SocketException() public SocketException(int errorCode) protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext)