CompareMethod CompareMethod CompareMethod CompareMethod Enum

定义

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

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

字段

Binary Binary Binary Binary 0

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

Text Text Text 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 比较语句For details on binary and text comparisons, see Option Compare Statement.

适用于

另请参阅