Partager via


LikeOperator.LikeString Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Shared Function LikeString ( _
    Source As String, _
    Pattern As String, _
    CompareOption As CompareMethod _
) As Boolean
public static bool LikeString(
    string Source,
    string Pattern,
    CompareMethod CompareOption
)

Parameters

  • Pattern
    Type: System.String
    The string against which Source is being compared.

Return Value

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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