<PackageReference Include="NLog" Version="6.1.1" />

NLog.Filters.WhenNotEqualFilter

Matches when the calculated layout is NOT equal to the specified substring. This filter is deprecated in favor of <when /> which is based on conditions.
public string CompareTo { get; set; }

Gets or sets a string to compare the layout to.

public bool IgnoreCase { get; set; }

Gets or sets a value indicating whether to ignore case when comparing strings.

Initializes a new instance of the WhenNotEqualFilter class.