Last updated: 2006-09-18

This website is based on NLog v1.0. Click here to view the documentation for other versions.

whenContains Filter


Matches when the calculated layout contains the specified substring. This filter is deprecated in favour of <when /> which is based on contitions

AssemblyClass.NET Framework.NET CFMono on WindowsMono on Unix
1.01.12.01.02.01.02.01.02.0
NLog.dllNLog.Filters.WhenContainsFilter

Parameters:

NameTypeDescription
ActionFilterResult User-requested action to be taken when filter matches.
Layoutstring The layout text;
Substringstring Substring to be matched.
IgnoreCaseboolean Ignore case when comparing strings.

Default value is: False.


Back to the filter list.
Webwww.nlog-project.org