CompareMethod Enumeration

CompareMethod Enumeration

 

Indicates how to compare strings when calling comparison functions.

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

Public Enumeration 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:
© 2016 Microsoft