Click or drag to resize

XmlAttribute Class

XML attribute.
Inheritance Hierarchy
SystemObject
  NLog.LayoutsXmlAttribute

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public class XmlAttribute

The XmlAttribute type exposes the following members.

Constructors
  NameDescription
Public methodXmlAttribute
Initializes a new instance of the XmlAttribute class.
Public methodXmlAttribute(String, Layout)
Initializes a new instance of the XmlAttribute class.
Public methodXmlAttribute(String, Layout, Boolean)
Initializes a new instance of the XmlAttribute 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 with Xml-string escaping, or be treated as valid xml-attribute-value
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