NativeError GetErrorMessage Method | Apache log4net™ SDK Documentation

Retrieves the message corresponding with a Win32 message identifier.

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

C#
VB
C++
F#
Copy

    public static string GetErrorMessage(
    	int messageId
    )

    Public Shared Function GetErrorMessage (
    	messageId As Integer
    ) As String

    public:
    static String^ GetErrorMessage(
    	int messageId
    )

    static member GetErrorMessage :
            messageId : int -> string

#### Parameters

messageId
  Type: System
  Int32
  Message identifier for the requested message.

#### Return Value

Type: String
The message corresponding with the specified message identifier.
Remarks

The message will be searched for in system message-table resource(s) using the native FormatMessage function.

See Also

#### Reference

NativeError Class
log4net.Util Namespace