Επεξεργασία

Κοινή χρήση μέσω


Operators.LikeString(String, String, CompareMethod) Method

Definition

Represents the Visual Basic Like operator.

This API supports the product infrastructure and is not intended to be used 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);
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

Required. Any String expression.

Pattern
String

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

CompareOption
CompareMethod

Required. A CompareMethod value that specifies that the operation use either text or binary comparison.

Returns

True if the value in Source satisfies the pattern that is contained in Pattern; otherwise, False. True if both Source and Pattern are empty.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to

See also