AppenderSkeleton RequiresLayout Property | Apache log4net™ SDK Documentation

Tests if this appender requires a Layout to be set.

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

C#
VB
C++
F#
Copy

    protected virtual bool RequiresLayout { get; }

    Protected Overridable ReadOnly Property RequiresLayout As Boolean
    	Get

    protected:
    virtual property bool RequiresLayout {
    	bool get ();
    }

    abstract RequiresLayout : bool with get
    override RequiresLayout : bool with get

#### Return Value

Type: Boolean
true if the appender requires a layout object, otherwise false.
Remarks

In the rather exceptional case, where the appender implementation admits a layout but can also work without it, then the appender should return true.

This default implementation always returns false.

See Also

#### Reference

AppenderSkeleton Class
log4net.Appender Namespace