Szerkesztés

Megosztás a következőn keresztül:


LikeOperator.LikeString(String, String, CompareMethod) Method

Definition

Performs binary or text string comparison given two strings. This helper method is not meant to be called directly from your code.

public:
 static bool LikeString(System::String ^ Source, System::String ^ Pattern, Microsoft::VisualBasic::CompareMethod CompareOption);
public static bool LikeString (string? Source, string? Pattern, Microsoft.VisualBasic.CompareMethod CompareOption);
public static bool LikeString (string Source, string Pattern, Microsoft.VisualBasic.CompareMethod CompareOption);
static member LikeString : string * string * Microsoft.VisualBasic.CompareMethod -> bool
Public Shared Function LikeString (Source As String, Pattern As String, CompareOption As CompareMethod) As Boolean

Parameters

Source
String

The string to compare.

Pattern
String

The string against which Source is being compared.

CompareOption
CompareMethod

A CompareMethod enumeration specifying whether or not to use text comparison. If Text, this method uses text comparison; if Binary, this method uses binary comparison.

Returns

True if the strings match; otherwise, False.

Remarks

For more information, see Option Compare Statement.

Applies to