LoggingEvent LookupProperty Method | Apache log4net™ SDK Documentation

Lookup a composite property in this event

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

C#
VB
C++
F#
Copy

    public Object LookupProperty(
    	string key
    )

    Public Function LookupProperty (
    	key As String
    ) As Object

    public:
    Object^ LookupProperty(
    	String^ key
    )

    member LookupProperty :
            key : string -> Object

#### Parameters

key
  Type: System
  String
  the key for the property to lookup

#### Return Value

Type: Object
the value for the property
Remarks

This event has composite properties that combine together properties from several different contexts in the following order:

this events properties
  This event has Properties that can be set. These properties are specific to this event only.
the thread properties
  The Properties that are set on the current thread. These properties are shared by all events logged on this thread.
the global properties
  The Properties that are set globally. These properties are shared by all the threads in the AppDomain.

See Also

#### Reference

LoggingEvent Class
log4net.Core Namespace