Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

XmlLayoutBase.InvalidCharReplacement Property

The string to replace characters that can not be expressed in XML with.

Not all characters may be expressed in XML. This property contains the string to replace those that can not with. This defaults to a ?. Set it to the empty string to simply remove offending characters. For more details on the allowed character ranges see http://www.w3.org/TR/REC-xml/#charsets Character replacement will occur in the log message, the property names and the property values.

[Visual�Basic]
Public�Property�InvalidCharReplacement�As�String
[C#]
public�string�InvalidCharReplacement�{get;�set;}

See Also

XmlLayoutBase Class | log4net.Layout Namespace