Operators.LikeObject Method (Object, Object, CompareMethod)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Represents the Visual Basic Like operator.

Namespace:   Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public static object LikeObject(
	object Source,
	object Pattern,
	CompareMethod CompareOption


Type: System.Object

Required. Any expression.

Type: System.Object

Required. Any string expression conforming to the pattern-matching conventions described in Like Operator.

Type: Microsoft.VisualBasic.CompareMethod

Required. A CompareMethod value that specifies that the operation use either text or binary comparison.

Return Value

Type: System.Object

True if the string representation of the value in Source satisfies the pattern that is contained in Pattern; otherwise, False. True if both Source and Pattern are Nothing.

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

.NET Framework
Available since 2.0
Return to top