Bewerken

Delen via


Operators.LikeObject(Object, Object, CompareMethod) Method

Definition

Represents the Visual Basic Like operator.

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

public:
 static System::Object ^ LikeObject(System::Object ^ Source, System::Object ^ Pattern, Microsoft::VisualBasic::CompareMethod CompareOption);
public static object LikeObject (object Source, object Pattern, Microsoft.VisualBasic.CompareMethod CompareOption);
static member LikeObject : obj * obj * Microsoft.VisualBasic.CompareMethod -> obj
Public Shared Function LikeObject (Source As Object, Pattern As Object, CompareOption As CompareMethod) As Object

Parameters

Source
Object

Required. Any expression.

Pattern
Object

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

CompareOption
CompareMethod

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

Returns

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.

Remarks

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

Applies to

See also