Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

PatternLayout.AddConverter�Method�(String, Type)

Add a converter to this PatternLayout

[Visual�Basic]
Overloads�Public�Sub�AddConverter( _
���ByVal name�As�String,�_
���ByVal type�As�Type�_
)
[C#]
public�void�AddConverter(
���stringname,
���Typetype
);

Parameters

name
the name of the conversion pattern for this converter
type
the type of the converter

Remarks

Add a named pattern converter to this instance. This converter will be used in the formatting of the event. This method must be called before ActivateOptions.

The type specified must extend the PatternConverter type.

See Also

PatternLayout Class | log4net.Layout Namespace | PatternLayout.AddConverter Overload List