EventLogAppender EventId Property | Apache log4net™ SDK Documentation

Gets or sets the EventId to use unless one is explicitly specified via the LoggingEvent's properties.

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

C#
VB
C++
F#
Copy

    public int EventId { get; set; }

    Public Property EventId As Integer
    	Get
    	Set

    public:
    property int EventId {
    	int get ();
    	void set (int value);
    }

    member EventId : int with get, set

#### Property Value

Type: Int32
Remarks

The EventID of the event log entry will normally be set using the EventID property (Properties) on the LoggingEvent. This property provides the fallback value which defaults to 0.

See Also

#### Reference

EventLogAppender Class
log4net.Appender Namespace