DnsFilterResult Class

Represents the outcome of evaluating a DNS query against the filter engine.

public sealed class DnsFilterResult

Properties

NameDescription
ActionGets the action determined by the matching rule, or DnsFilterAction.None when no rule matched.
IsMatchedGets a value indicating whether the query matched a filter rule.
MatchingRuleGets the matching rule, if any.
NotMatchedGets a result indicating the query did not match any filter rule. Its DnsFilterResult.Action is DnsFilterAction.None.
RewriteGets the rewrite directive from the matching rule. Non-null if and only if DnsFilterResult.Action is DnsFilterAction.Rewrite.

Gets the action determined by the matching rule, or DnsFilterAction.None when no rule matched.

public DnsFilterAction Action { get; }

Property value

DnsFilterAction

Gets a value indicating whether the query matched a filter rule.

public bool IsMatched { get; }

Property value

bool

MatchingRule

DnsFilterResult.cs

Gets the matching rule, if any.

public DnsFilterRule? MatchingRule { get; }

Property value

DnsFilterRule?

Gets a result indicating the query did not match any filter rule. Its DnsFilterResult.Action is DnsFilterAction.None.

public static DnsFilterResult NotMatched { get; }

Property value

DnsFilterResult

Gets the rewrite directive from the matching rule. Non-null if and only if DnsFilterResult.Action is DnsFilterAction.Rewrite.

public DnsFilterRewriteRule? Rewrite { get; }

Property value

DnsFilterRewriteRule?