Поделиться через


LikeOperator.LikeObject Method

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

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)

Syntax

'Declaration
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
)

Parameters

  • 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

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.