LikeOperator.LikeString Method (String, String, CompareMethod)

 

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

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

The string to compare.

Pattern
Type: System.String

The string against which Source is being compared.

CompareOption
Type: Microsoft.VisualBasic.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.

Return Value

Type: System.Boolean

A Boolean value indicating whether the strings match. Returns True if the strings match; otherwise False.

For more information, see Option Compare Statement.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: