[This is preliminary documentation and is subject to change.]

Marks class as a logging target and assigns a name to it.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 2.0.1.0

Syntax

C#
public sealed class TargetAttribute : NameBaseAttribute
Visual Basic (Declaration)
Public NotInheritable Class TargetAttribute _
	Inherits NameBaseAttribute
Visual Basic (Usage)
Dim instance As TargetAttribute

Inheritance Hierarchy

Object
  Attribute
    NLog.Config..::.NameBaseAttribute
      NLog.Targets..::.TargetAttribute

See Also