DnsFilterResult Class
Represents the outcome of evaluating a DNS query against the filter engine.
public sealed class DnsFilterResultProperties
| Name | Description |
|---|---|
| Action | Gets the action determined by the matching rule, or DnsFilterAction.None when no rule matched. |
| IsMatched | Gets a value indicating whether the query matched a filter rule. |
| MatchingRule | Gets the matching rule, if any. |
| NotMatched | Gets a result indicating the query did not match any filter rule. Its DnsFilterResult.Action is DnsFilterAction.None. |
| Rewrite | Gets the rewrite directive from the matching rule. Non-null if and only if DnsFilterResult.Action is DnsFilterAction.Rewrite. |
Action
DnsFilterResult.csGets the action determined by the matching rule, or DnsFilterAction.None when no rule matched.
public DnsFilterAction Action { get; }Property value
IsMatched
DnsFilterResult.csMatchingRule
DnsFilterResult.csNotMatched
DnsFilterResult.csGets a result indicating the query did not match any filter rule. Its DnsFilterResult.Action is DnsFilterAction.None.
public static DnsFilterResult NotMatched { get; }Property value
Rewrite
DnsFilterResult.csGets the rewrite directive from the matching rule. Non-null if and only if DnsFilterResult.Action is DnsFilterAction.Rewrite.
public DnsFilterRewriteRule? Rewrite { get; }