Operators.LikeString Method (String, String, CompareMethod)

 

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

Represents the Visual Basic Like operator.

Namespace:   Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public static bool LikeString(
	string Source,
	string Pattern,
	CompareMethod CompareOption
)

Parameters

Source
Type: System.String

Required. Any String expression.

Pattern
Type: System.String

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

CompareOption
Type: Microsoft.VisualBasic.CompareMethod

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

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 2.0
Return to top
Show: