Export (0) Print
Expand All

LikeOperator.LikeString Method

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.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft