Share via


TextFilterRule.ExactMatchEvaluate(String, String, String) Method

Definition

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.

protected public:
 bool ExactMatchEvaluate(System::String ^ data, System::String ^ pattern, System::String ^ exactMatchPattern);
protected public:
 bool ExactMatchEvaluate(Platform::String ^ data, Platform::String ^ pattern, Platform::String ^ exactMatchPattern);
bool ExactMatchEvaluate(std::wstring const & data, std::wstring const & pattern, std::wstring const & exactMatchPattern);
protected internal bool ExactMatchEvaluate (string data, string pattern, string exactMatchPattern);
member this.ExactMatchEvaluate : string * string * string -> bool
Protected Friend Function ExactMatchEvaluate (data As String, pattern As String, exactMatchPattern As String) As Boolean

Parameters

data
String

The data to evaluate.

pattern
String

The pattern to use if the current value is not an exact-match string. The pattern must contain a {0} token.

exactMatchPattern
String

The pattern to use if the current value is an exact-match string. The pattern must contain a {0} token.

Returns

true if the specified data matches one of the specified patterns; otherwise, false.

Applies to