WebSocketException Constructor (WebSocketError, Int32)

.NET Framework 4.5

Creates an instance of the WebSocketException class.

Namespace:  System.Net.WebSockets
Assembly:  System (in System.dll)

public WebSocketException(
	WebSocketError error,
	int nativeError
)

Parameters

error
Type: System.Net.WebSockets.WebSocketError

The error from the WebSocketError enumeration.

nativeError
Type: System.Int32

The native error code for the exception.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft