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


Type: System.String
The string to compare.
Type: System.String
The string against which Source is being compared.
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.


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

© 2014 Microsoft