Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Operators::LikeObject Method (Object^, Object^, CompareMethod)

 

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
)

Parameters

Source
Type: System::Object^

Required. Any expression.

Pattern
Type: System::Object^

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

CompareOption
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
Show:
© 2017 Microsoft