Click or drag to resize

WhenMethodFilter Class

Matches the provided filter-method
Inheritance Hierarchy
SystemObject
  NLog.FiltersFilter
    NLog.FiltersWhenMethodFilter

Namespace:  NLog.Filters
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public class WhenMethodFilter : Filter

The WhenMethodFilter type exposes the following members.

Constructors
  NameDescription
Public methodWhenMethodFilter
Initializes a new instance of the WhenMethodFilter class.
Top
Properties
  NameDescription
Public propertyAction
Gets or sets the action to be taken when filter matches.
(Inherited from Filter.)
Top
Methods
  NameDescription
Protected methodCheck
Checks whether log event should be logged or not.
(Overrides FilterCheck(LogEventInfo).)
Top
See Also