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.

CompareMethod Enumeration

 

Indicates how to compare strings when calling comparison functions.

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

public enum class 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:
© 2017 Microsoft