Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

IObjectRenderer.RenderObject�Method�

Render the object obj to a string

[Visual�Basic]
Sub�RenderObject( _
���ByVal rendererMap�As�RendererMap,�_
���ByVal obj�As�Object,�_
���ByVal writer�As�TextWriter�_
)
[C#]
void�RenderObject(
���RendererMaprendererMap,
���objectobj,
���TextWriterwriter
);

Parameters

rendererMap
The map used to lookup renderers
obj
The object to render
writer
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 FindAndRender method can be used to render these objects.

See Also

IObjectRenderer Interface | log4net.ObjectRenderer Namespace