SocketException.SocketErrorCode 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:
property System::Net::Sockets::SocketError SocketErrorCode { System::Net::Sockets::SocketError get(); };
public System.Net.Sockets.SocketError SocketErrorCode { get; }
member this.SocketErrorCode : System.Net.Sockets.SocketError
Public ReadOnly Property SocketErrorCode As SocketError
Property Value
An integer error code that is associated with this exception.
Remarks
The SocketErrorCode 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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για