log4net SDK Reference |

# NativeError.GetError Method

Create a new instance of the NativeError class.

[Visual Basic]
Public Shared Function GetError( _
ByVal number As Integer _
) As NativeError
[C#]
public static NativeError GetError(
int number
);

#### Parameters

number
  the error number for the native error

#### Return Value

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

NativeError Class | log4net.Util Namespace