String..::..Compare Method (String, String, Boolean)
Compares two specified String objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static int Compare( string strA, string strB, bool ignoreCase )
<TemplateAttribute> _ Public Shared Function Compare ( _ strA As String, _ strB As String, _ ignoreCase As Boolean _ ) As Integer
[TemplateAttribute] public: static int^ Compare( String^ strA, String^ strB, bool^ ignoreCase )
Parameters
- strA
- Type: System..::..String
The first string to compare.
- strB
- Type: System..::..String
The second string to compare.
- ignoreCase
- Type: System..::..Boolean
true to ignore case during the comparison; otherwise, false.