PatternLayout Constructor (String) | Apache log4net™ SDK Documentation

Constructs a PatternLayout using the supplied conversion pattern

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

C#
VB
C++
F#
Copy

    public PatternLayout(
    	string pattern
    )

    Public Sub New (
    	pattern As String
    )

    public:
    PatternLayout(
    	String^ pattern
    )

    new :
            pattern : string -> PatternLayout

#### Parameters

pattern
  Type: System
  String
  the pattern to use

Remarks

Note to Inheritors: This constructor calls the virtual method CreatePatternParser(String). If you override this method be aware that it will be called before your is called constructor.

When using this constructor the ActivateOptions
method need not be called. This may not be the case when using a subclass.

See Also

#### Reference

PatternLayout Class
PatternLayout Overload
log4net.Layout Namespace