LikeOperator.LikeObject Method

Performs binary or text string comparison given two objects. 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 Shared Function LikeObject ( _
    Source As Object, _
    Pattern As Object, _
    CompareOption As CompareMethod _
) As Object
public static Object LikeObject(
    Object Source,
    Object Pattern,
    CompareMethod CompareOption


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

Return Value

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

Version Information


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.