System.Net.Sockets.SocketException.ErrorCode Property

Gets the error code that is associated with this exception.

Syntax

public override int ErrorCode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The SocketException.ErrorCode property contains the error code that is associated with the error that caused the exception.

The default constructor for System.Net.Sockets.SocketException sets the SocketException.ErrorCode property to the last operating system error that occurred. For more information about socket error codes, see the Windows Sockets version 2 API error code documentation in MSDN.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0