LoggerRepositorySkeleton AddRenderer Method | Apache log4net™ SDK Documentation

Adds an object renderer for a specific class.

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

C#
VB
C++
F#
Copy

    public virtual void AddRenderer(
    	Type typeToRender,
    	IObjectRenderer rendererInstance
    )

    Public Overridable Sub AddRenderer (
    	typeToRender As Type,
    	rendererInstance As IObjectRenderer
    )

    public:
    virtual void AddRenderer(
    	Type^ typeToRender,
    	IObjectRenderer^ rendererInstance
    )

    abstract AddRenderer :
            typeToRender : Type *
            rendererInstance : IObjectRenderer -> unit
    override AddRenderer :
            typeToRender : Type *
            rendererInstance : IObjectRenderer -> unit

#### Parameters

typeToRender
  Type: System
  Type
  The type that will be rendered by the renderer supplied.
rendererInstance
  Type: log4net.ObjectRenderer
  IObjectRenderer
  The object renderer used to render the object.

Remarks

Adds an object renderer for a specific class.

See Also

#### Reference

LoggerRepositorySkeleton Class
log4net.Repository Namespace