[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.0.0

Syntax

C#
public sealed class TargetAttribute : NameBaseAttribute
Visual Basic (Declaration)
Public NotInheritable Class TargetAttribute _
	Inherits NameBaseAttribute
Visual C++
public ref class TargetAttribute sealed : public NameBaseAttribute

Inheritance Hierarchy

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

See Also