Marshal.SetLastSystemError(Int32) Method
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.
Sets the last system error on the current thread.
public:
static void SetLastSystemError(int error);
public static void SetLastSystemError(int error);
static member SetLastSystemError : int -> unit
Public Shared Sub SetLastSystemError (error As Integer)
- error
- Int32
The error to set.
The system error is based on the current operating system—that is, errno
on Unix and SetLastError on Windows.
Product | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: