IObjectRenderer RenderObject Method | Apache log4net™ SDK Documentation

Render the object obj to a string

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

C#
VB
C++
F#
Copy

    void RenderObject(
    	RendererMap rendererMap,
    	Object obj,
    	TextWriter writer
    )

    Sub RenderObject (
    	rendererMap As RendererMap,
    	obj As Object,
    	writer As TextWriter
    )

    void RenderObject(
    	RendererMap^ rendererMap,
    	Object^ obj,
    	TextWriter^ writer
    )

    abstract RenderObject :
            rendererMap : RendererMap *
            obj : Object *
            writer : TextWriter -> unit

#### Parameters

rendererMap
  Type: log4net.ObjectRenderer
  RendererMap
  The map used to lookup renderers
obj
  Type: System
  Object
  The object to render
writer
  Type: System.IO
  TextWriter
  The writer to render to

Remarks

Render the object obj to a string.

The rendererMap parameter is provided to lookup and render other objects. This is very useful where obj contains nested objects of unknown type. The [M:RendererMap.FindAndRender(object, TextWriter)] method can be used to render these objects.

See Also

#### Reference

IObjectRenderer Interface
log4net.ObjectRenderer Namespace