SocketException.ErrorCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the error code that is associated with this exception.
public:
virtual property int ErrorCode { int get(); };
public override int ErrorCode { get; }
member this.ErrorCode : int
Public Overrides ReadOnly Property ErrorCode As Integer
Property Value
An integer error code that is associated with this exception.
Remarks
The ErrorCode property contains the error code that is associated with the error that caused the exception.
The parameterless constructor for SocketException sets the ErrorCode property to the last operating system error that occurred. For more information about socket error codes, see the Windows Sockets version 2 API error code documentation.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru