StringType.StrLikeText(String, String) Method

Definition

Compares the parameters Source and Pattern and returns the same results as the Like operator, using text comparison.

This API supports the product infrastructure and is not intended to be used directly from your code.

public static bool StrLikeText (string? Source, string? Pattern);
public static bool StrLikeText (string Source, string Pattern);

Parameters

Source
String

Required. Any String expression.

Pattern
String

Required. Any String expression conforming to the pattern-matching conventions described in Like Operator.

Returns

A Boolean value indicating whether or not the string satisfies the pattern. If the value in string satisfies the pattern contained in pattern, result is True. If the string does not satisfy the pattern, result is False. If both string and pattern are empty strings, the result is True.

Remarks

This method compares the parameters Source and Pattern and returns the same results as the Like Operator. The result is a Boolean value indicating whether or not the string satisfies the pattern.

This method is similar to StrLike except that it always performs a comparison based on a case-insensitive text sort order determined by your system's LocaleID value.

Applies to

منتج الإصدارات
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1