Click or drag to resize

OnHasPropertiesLayoutRendererWrapper Class

Outputs alternative layout when the inner layout produces empty result.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersOnHasPropertiesLayoutRendererWrapper

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public sealed class OnHasPropertiesLayoutRendererWrapper : WrapperLayoutRendererBase

The OnHasPropertiesLayoutRendererWrapper type exposes the following members.

Constructors
  NameDescription
Public methodOnHasPropertiesLayoutRendererWrapper
Initializes a new instance of the OnHasPropertiesLayoutRendererWrapper class
Top
Properties
  NameDescription
Public propertyElse
If HasProperties is not found, print this layout.
Public propertyInner
Gets or sets the wrapped layout. [DefaultParameter] so Inner: is not required if it's the first
(Inherited from WrapperLayoutRendererBase.)
Top
Methods
  NameDescription
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
Remarks
Examples
${onhasproperties:, Properties\: ${all-event-properties}}
See Also