CompareMethod 枚举
定义
指示当调用比较函数时如何比较字符串。Indicates how to compare strings when calling comparison functions.
public enum class CompareMethod
public enum CompareMethod
type CompareMethod =
Public Enum CompareMethod
- 继承
字段
Binary | 0 | 执行二进制比较。Performs a binary comparison. 此成员等效于 Visual Basic 常量 |
Text | 1 | 执行文本比较。Performs a textual comparison. 此成员等效于 Visual Basic 常量 |
注解
调用比较函数时, 可以在代码中使用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.
适用于
另请参阅
- Filter(String[], String, Boolean, CompareMethod)
- InStr(String, String, CompareMethod)
- InStrRev(String, String, Int32, CompareMethod)
- Replace(String, String, String, Int32, Int32, CompareMethod)
- Split(String, String, Int32, CompareMethod)
- StrComp(String, String, CompareMethod)
- 常量和枚举Constants and Enumerations
- 何时使用枚举When to Use an Enumeration
- 如何:引用枚举成员How to: Refer to an Enumeration Member