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.​SocketException

Assembly: System.Net.Primitives

Inheritance: object → ExceptionSystemExceptionRuntime.InteropServices.ExternalExceptionComponentModel.Win32Exception → SocketException

The exception that is thrown when a socket error occurs.

Properties

public int
ErrorCode
Gets the error code that is associated with this exception.
public string
Message
Gets the error message that is associated with this exception.
public SocketError
SocketErrorCode
Gets the error code that is associated with this exception.
public int
NativeErrorCode
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Source
public string
StackTrace
TargetSite

Methods

public void
GetObjectData​(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context)
Inherited from Win32Exception
public string
ToString​()
Inherited from Win32Exception
public Exception
GetBaseException​()
Inherited from Exception
public Type
GetType​()
Inherited from Exception
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object