Click or drag to resize

TargetAttribute Class

Marks class as logging target and attaches a type-alias name for use in NLog configuration.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    NLog.ConfigNameBaseAttribute
      NLog.TargetsTargetAttribute

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public sealed class TargetAttribute : NameBaseAttribute

The TargetAttribute type exposes the following members.

Constructors
  NameDescription
Public methodTargetAttribute
Initializes a new instance of the TargetAttribute class.
Top
Properties
  NameDescription
Public propertyIsCompound
Gets or sets a value indicating whether to the target is a compound target (used to generate the target summary documentation page).
Public propertyIsWrapper
Gets or sets a value indicating whether to the target is a wrapper target (used to generate the target summary documentation page).
Public propertyName
Gets the name of the type-alias
(Inherited from NameBaseAttribute.)
Top
See Also