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