Redigera

Dela via


LikeOperator.LikeObject(Object, Object, CompareMethod) Method

Definition

Performs binary or text string comparison given two objects. This helper method is not meant to be called 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);
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

The string to compare.

Pattern
Object

The string against which Source is being compared.

CompareOption
CompareMethod

A CompareMethod enumeration specifying whether or not to use text comparison. If Text, this method uses text comparison; if Binary, this method uses binary comparison.

Returns

True if the strings match; otherwise, False.

Remarks

For more information, see Option Compare Statement.

Applies to