Click or drag to resize

JsonAttribute Class

JSON attribute.
Inheritance Hierarchy
SystemObject
  NLog.LayoutsJsonAttribute

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
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 propertyEscapeForwardSlash
Should forward slashes be escaped? If true, / will be converted to \/
Public propertyEscapeUnicode
Gets or sets a value indicating whether to escape non-ascii characters
Public propertyIncludeEmptyValue
Gets or sets whether an attribute with empty value should be included in the output
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.
Public propertyValueType
Gets or sets the result value type, for conversion of layout rendering output
Top
See Also