RendererMap Put Method | Apache log4net™ SDK Documentation

Register an IObjectRenderer for typeToRender.

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

C#
VB
C++
F#
Copy

    public void Put(
    	Type typeToRender,
    	IObjectRenderer renderer
    )

    Public Sub Put (
    	typeToRender As Type,
    	renderer As IObjectRenderer
    )

    public:
    void Put(
    	Type^ typeToRender,
    	IObjectRenderer^ renderer
    )

    member Put :
            typeToRender : Type *
            renderer : IObjectRenderer -> unit

#### Parameters

typeToRender
  Type: System
  Type
  the type that will be rendered by renderer
renderer
  Type: log4net.ObjectRenderer
  IObjectRenderer
  the renderer for typeToRender

Remarks

Register an object renderer for a specific source type. This renderer will be returned from a call to [M:Get(Type)] specifying the same typeToRender as an argument.

See Also

#### Reference

RendererMap Class
log4net.ObjectRenderer Namespace