Gets the error code associated with this exception if the error status is SocketError or ProtocolError. Returns 0 otherwise.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Property ErrorCode As Integer
	Get
	Set
C#
public int ErrorCode { get; set; }

Field Value

An integer error code associated with this exception (or 0).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also