CodedSocketException Constructor (SocketError) |
[This is preliminary documentation and is subject to change.]
Namespace:
NerdyDuck.CodedExceptions
Assembly:
NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntaxpublic CodedSocketException(
SocketError errorCode
)
Public Sub New (
errorCode As SocketError
)
View SourceParameters
- errorCode
- Type: System.Net.SocketsSocketError
The error code that indicates the error that occurred.
RemarksThis 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