CompareMethod Enumeration

 
System_CAPS_noteNote

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

Indicates how to compare strings when calling comparison functions.

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

public enum CompareMethod

Member nameDescription
Binary

Performs a binary comparison. This member is equivalent to the Visual Basic constant vbBinaryCompare.

Text

Performs a textual comparison. This member is equivalent to the Visual Basic constant vbTextCompare.

When you call comparison functions, you can use the CompareMethod enumeration in your code in place of the actual values. The Compare argument takes the CompareMethod enumeration members.

For details on binary and text comparisons, see Option Compare Statement.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: