NativeError GetError Method | Apache log4net™ SDK Documentation

Create a new instance of the NativeError class.

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

C#
VB
C++
F#
Copy

    public static NativeError GetError(
    	int number
    )

    Public Shared Function GetError (
    	number As Integer
    ) As NativeError

    public:
    static NativeError^ GetError(
    	int number
    )

    static member GetError :
            number : int -> NativeError

#### Parameters

number
  Type: System
  Int32
  the error number for the native error

#### Return Value

Type: NativeError
An instance of the NativeError class for the specified error number.
Remarks

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

See Also

#### Reference

NativeError Class
log4net.Util Namespace