log4net SDK Reference

NativeError.GetLastError Method 

Create a new instance of the NativeError class for the last Windows error.

[Visual Basic]
Public Shared Function GetLastError() As NativeError
[C#]
public static NativeError GetLastError();

Return Value

An instance of the NativeError class for the last windows error.

Remarks

The message for the GetLastWin32Error error number is lookup up using the native Win32 FormatMessage function.

See Also

NativeError Class | log4net.Util Namespace