Click or drag to resize

JsonAttribute Class

JSON attribute.
Inheritance Hierarchy
SystemObject
  NLog.LayoutsJsonAttribute

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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 propertyDefaultValue
Gets or sets the fallback value when result value is not available
Public propertyEncode
Gets or sets whether output should be encoded as Json-String-Property, or be treated as valid json.
Public propertyEscapeUnicode
Gets or sets a value indicating whether to escape non-ascii characters
Public propertyIncludeEmptyValue
Gets or sets whether empty attribute value should be included in the output.
Public propertyLayout
Gets or sets the layout used for rendering the attribute value.
Public propertyName
Gets or sets the name of the attribute.
Public propertyValueType
Gets or sets the result value type, for conversion of layout rendering output
Top
Remarks
See Also