whenNotContains Filter
Matches when the calculated layout does NOT contain the specified substring. This filter is deprecated in favour of
<when /> which is based on contitions| Assembly | Class | .NET Framework | .NET CF | Mono on Windows | Mono on Unix | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1.0 | 1.1 | 2.0 | 1.0 | 2.0 | 1.0 | 2.0 | 1.0 | 2.0 | ||
| NLog.dll | NLog.Filters.WhenNotContainsFilter | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Parameters:
| Name | Type | Description |
|---|---|---|
| Action | User-requested action to be taken when filter matches. | |
| Layout | The layout text; | |
| Substring | Substring to be matched. | |
| IgnoreCase | Ignore case when comparing strings. Default value is: |
Back to the filter list.



