Collation.Compare Method (string, int, string, int, int)Collation.Compare Method (String, Integer, String, Integer, Integer)Collation::Compare Method (String^, int, String^, int, int)
- XmlPrime 3.0
- Other Versions ▼
Syntax
Parameters
- value1
Type: System.StringSystem.StringSystem::String^
The first string to use in the comparison.
- index1
Type: System.Int32System.Int32System::Int32
The position of the substring within value1.
- value2
Type: System.StringSystem.StringSystem::String^
The second string to use in the comparison.
- index2
Type: System.Int32System.Int32System::Int32
The position of the substring within value2.
- length
Type: System.Int32System.Int32System::Int32
The maximum number of characters in the substrings to compare.
Return Value
Type: System.Int32System.Int32System::Int32
-1, 0, or 1, depending on whether the value of the value1 is respectively less than, equal to, or greater than the value of value2.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
value1 or value2 is null
a null reference (Nothing in Visual Basic)
nullptr .
|