CompareMethod 枚举

定义

指示当调用比较函数时如何比较字符串。Indicates how to compare strings when calling comparison functions.

public enum class CompareMethod
public enum CompareMethod
type CompareMethod = 
Public Enum CompareMethod
继承
CompareMethod

字段

Binary 0

执行二进制比较。Performs a binary comparison. 此成员等效于 Visual Basic 常量 vbBinaryCompareThis member is equivalent to the Visual Basic constant vbBinaryCompare.

Text 1

执行文本比较。Performs a textual comparison. 此成员等效于 Visual Basic 常量 vbTextCompareThis member is equivalent to the Visual Basic constant vbTextCompare.

注解

调用比较函数时, 可以在代码中使用CompareMethod枚举来替换实际值。When you call comparison functions, you can use the CompareMethod enumeration in your code in place of the actual values. Compare 参数CompareMethod采用枚举成员。The Compare argument takes the CompareMethod enumeration members.

有关二进制和文本比较的详细信息, 请参阅Option Compare 语句For details on binary and text comparisons, see Option Compare Statement.

适用于

另请参阅