Operators.LikeString(String, String, CompareMethod) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om