CodedSocketException Constructor (SocketError, String) |
[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,
string message
)
Public Sub New (
errorCode As SocketError,
message As String
)
View SourceParameters
- errorCode
- Type: System.Net.SocketsSocketError
The error code that indicates the error that occurred. - message
- Type: SystemString
The message that describes the error.
RemarksThis constructor initializes the
SocketErrorCode property of the new instance with
errorCode, and the
Message property using the value of the
message parameter. The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. 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