Click or drag to resize

CodedSocketException Constructor (SocketError)

[This is preliminary documentation and is subject to change.]

Initializes a new instance of the CodedSocketException class with the specified error code.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public CodedSocketException(
	SocketError errorCode
)
View Source

Parameters

errorCode
Type: System.Net.SocketsSocketError
The error code that indicates the error that occurred.
Remarks
This constructor initializes the SocketErrorCode property of the new instance with errorCode, and the Message property with a message that describes the error, such as "A socket error occurred". For more information about socket error codes, see the Windows Sockets version 2 API error code documentation (https://msdn.microsoft.com/library/windows/desktop/ms740668.aspx).
See Also