TextFilterStatistics Class
Definition
Represents an immutable snapshot of a TextFilter's accumulated evaluation statistics, obtained via GetStatistics().
public sealed class TextFilterStatistics
- Inheritance
-
TextFilterStatistics
- Inherited Members
- Extension Methods
Remarks
Counter totals reconcile: ItemsEvaluated equals ItemsAccepted + ItemsExcluded + ItemsNotIncluded. Under concurrent evaluation the counters may undercount (they are deliberately not interlocked to keep the evaluation path cheap); matching results themselves are always exact.
Properties
EvaluationTime
Gets the accumulated time spent evaluating values.
public TimeSpan EvaluationTime { get; }
Property Value
- TimeSpan
The accumulated evaluation time, or Zero when CaptureEvaluationTime is disabled.
ItemsAccepted
Gets the number of evaluated values that were accepted - the sum of the IncludedByDefault and Included outcomes.
public long ItemsAccepted { get; }
Property Value
ItemsEvaluated
Gets the total number of values evaluated since the filter was built or its statistics were last reset.
public long ItemsEvaluated { get; }
Property Value
ItemsExcluded
Gets the number of evaluated values rejected by an exclude pattern (the Excluded outcome).
public long ItemsExcluded { get; }
Property Value
ItemsNotIncluded
Gets the number of evaluated values rejected because include patterns exist and none matched (the NotIncluded outcome).
public long ItemsNotIncluded { get; }
Property Value
Patterns
Gets the per-pattern statistics, ordered as the patterns were declared.
public IReadOnlyList<TextFilterPatternStatistics> Patterns { get; }
Property Value
RegexTimeouts
Gets the number of pattern evaluations that timed out in the regular-expression engine and were decided fail-safe (a timed-out include treated as not matching; a timed-out exclude treated as matching).
public long RegexTimeouts { get; }
Property Value
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |