Lezen in het Engels

Delen via


TextFilterRule Class

Definition

The TextFilterRule class supports derived rules by offering services for evaluating string operations.

C++
public ref class TextFilterRule abstract : Microsoft::Management::UI::Internal::SingleValueComparableValueFilterRule<System::String ^>
Inheritance
Derived
Attributes

Constructors

TextFilterRule()

Initializes a new instance of the TextFilterRule class.

Fields

WordBoundaryRegexPattern

Gets a regex pattern that describes a word boundary that can include symbols.

Properties

CultureInvariant

Gets or sets whether culture differences in language are ignored when evaluating.

DefaultNullValueEvaluation

Gets or sets a value indicating whether null objects passed to Evaluate will evaluate to true or false.

(Inherited from ComparableValueFilterRule<T>)
DisplayName

Gets a display friendly name for the FilterRule.

(Inherited from FilterRule)
IgnoreCase

Gets or sets whether to ignore case when evaluating.

IsValid

Gets a value indicating whether the FilterRule can be evaluated in its current state.

(Inherited from SingleValueComparableValueFilterRule<T>)
Value

Gets a value that holds user input.

(Inherited from SingleValueComparableValueFilterRule<T>)

Methods

Evaluate(Object)

Determines if item matches a derived classes criteria.

(Inherited from ComparableValueFilterRule<T>)
Evaluate(T)

Determines if item matches a derived classes criteria.

(Inherited from ComparableValueFilterRule<T>)
ExactMatchEvaluate(String, String, String)

Gets a value indicating whether the specified data matches one of the specified patterns. If the current value is an exact-match string, exactMatchPattern will be used; otherwise, pattern will be used.

GetParsedValue(Boolean)

Gets the current value and determines whether it should be evaluated as an exact match.

GetRegexOptions()

Gets a RegexOptions object that matches the values of IgnoreCase and CultureInvariant.

GetRegexPattern(String, String)

Gets a regular expression pattern based on the current value and the specified patterns. If the current value is an exact-match string, exactMatchPattern will be used; otherwise, pattern will be used.

NotifyEvaluationResultInvalidated()

Fires EvaluationResultInvalidated.

(Inherited from FilterRule)

Events

EvaluationResultInvalidated

Occurs when the values of this rule changes.

(Inherited from FilterRule)

Extension Methods

DeepCopy(FilterRule)

Creates a deep copy of a FilterRule.

Applies to

Product Versies
Windows PowerShell 5.1.0.0