CodedSocketException Constructor (Int32, SocketError) |
[This is preliminary documentation and is subject to change.]
Initializes a new instance of the
CodedSocketException class with a specified HRESULT value and socket error code.
Namespace:
NerdyDuck.CodedExceptions
Assembly:
NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntaxpublic CodedSocketException(
int hresult,
SocketError errorCode
)
Public Sub New (
hresult As Integer,
errorCode As SocketError
)
View SourceParameters
- hresult
- Type: SystemInt32
The HRESULT that describes the error. - errorCode
- Type: System.Net.SocketsSocketError
The error code that indicates the error that occurred.
RemarksThis constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "A socket error occurred". This message takes into account the current system culture.
See the HRESULT definition at MSDN for
more information about the definition of HRESULT values.
See Also