Marshal.GetLastSystemError Method
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 last system error on the current thread.
public:
static int GetLastSystemError();
public static int GetLastSystemError ();
static member GetLastSystemError : unit -> int
Public Shared Function GetLastSystemError () As Integer
Returns
The last system error.
Remarks
The system error is based on the current operating system—that is, errno
on non-Windows and GetLastError on Windows.
This method is provided as a low-level API to allow getting the current system error in a cross-platform manner. It is not tied to platform invoke usage. To get the last platform invoke error, use GetLastPInvokeError.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για