Microsoft Docs

.NET API Browser

SocketException Class

System.Net.Sockets
Inheritance: ObjectExceptionSystemExceptionSerializableExceptionSocketException

Assembly:
System.dll
Declared in:
System.Net.Sockets

Syntax

public class SocketException : SystemException

Remarks

The SocketException class represents an error that occurred when performing a Windows Sockets operation. This exception is thrown by the Socket class and related classes when a socket operation fails. The ErrorCode property provides the specific error code for the socket operation that failed. You can use this error code to look up more detailed information about the error in the Windows Sockets documentation.

Constructors

Properties

See Also