Partager via


CompareMethod Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Indicates how to compare strings when calling comparison functions.

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

Syntax

'Declaration
Public Enumeration CompareMethod
public enum CompareMethod

Members

Member name Description
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.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference