Click or drag to resize

XmlAttribute Class

XML attribute.
Inheritance Hierarchy
SystemObject
  NLog.LayoutsXmlAttribute

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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 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