log4net SDK Reference |

# XmlLayout.Base64EncodeProperties Property

Set whether or not to base64 encode the property values.

[Visual Basic]
Public Property Base64EncodeProperties As Boolean
[C#]
public bool Base64EncodeProperties {get; set;}

#### Remarks

By default the properties will be written as text to the xml output. This can cause problems when one or more properties contain binary data. By setting this to true the values of the properties will be base64 encoded. If this is set then invalid character replacement (see InvalidCharReplacement) will not be performed on the property values.

#### See Also

XmlLayout Class | log4net.Layout Namespace