Click or drag to resize
JsonAttribute Class
JSON attribute.
Inheritance Hierarchy
SystemObject
  NLog.LayoutsJsonAttribute

Namespace: NLog.Layouts
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public class JsonAttribute

The JsonAttribute type exposes the following members.

Constructors
  NameDescription
Public methodJsonAttribute
Initializes a new instance of the JsonAttribute class.
Public methodJsonAttribute(String, Layout)
Initializes a new instance of the JsonAttribute class.
Public methodJsonAttribute(String, Layout, Boolean)
Initializes a new instance of the JsonAttribute class.
Top
Properties
  NameDescription
Public propertyEncode
Determines wether or not this attribute will be Json encoded.
Public propertyLayout
Gets or sets the layout that will be rendered as the attribute's value.
Public propertyName
Gets or sets the name of the attribute.
Top
See Also