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.​WebSockets.​WebSocketException

Assembly: System.Net.WebSockets

Inheritance: object → ExceptionSystemExceptionRuntime.​InteropServices.​ExternalExceptionComponentModel.​Win32Exception → WebSocketException

Implemented Interfaces

Represents an exception that occurred when performing an operation on a WebSocket connection.

Properties

public int
ErrorCode
The native error code for the exception that occurred.
WebSocketErrorCode
Returns a WebSocketError indicating the type of error that occurred.
public int
NativeErrorCode
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Message
public string
Source
public string
StackTrace
TargetSite

Methods

public void
GetObjectData​(Runtime.​Serialization.​SerializationInfo info, Runtime.​Serialization.​StreamingContext context)
Sets the SerializationInfo object with the file name and line number where the exception occurred.
info A SerializationInfo object.
context The contextual information about the source or destination.
public string
ToString​()
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