NativeError.GetLastError Method
NativeErrorGetLastError Method Apache log4net™ SDK Documentation
Create a new instance of the NativeError class for the last Windows error.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public static NativeError GetLastError()

Return Value

Type: NativeError
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

Reference