Rediger

Del via


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(System::String ^ Source, System::String ^ Pattern);
public static bool StrLikeText (string? Source, string? Pattern);
public static bool StrLikeText (string Source, string Pattern);
static member StrLikeText : string * string -> bool
Public Shared Function StrLikeText (Source As String, Pattern As String) As Boolean
Public Function StrLikeText (Source As String, Pattern As String) As Boolean

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