Click or drag to resize

JsonAttribute Constructor (String, JsonLayout)

Initializes a new instance of the JsonAttribute class with JsonLayout and Encode = .

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public JsonAttribute(
	string name,
	JsonLayout layout
)

Parameters

name
Type: SystemString
The name of the attribute.
layout
Type: NLog.LayoutsJsonLayout
The layout of the attribute's value (Default Encode = false).
See Also