CMSStringCompare Method (String, String, Boolean, CultureInfo) |
Note: This API is now obsolete.
Compares two strings. Returns an integer that indicates the relationship of the two strings to each other in the sort order.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 10.0.0
Syntax [ObsoleteAttribute("Use String.Compare(string a, string b, bool ignoreCase, CultureInfo culture).")]
public static int Compare(
string strA,
string strB,
bool ignoreCase,
CultureInfo cui
)
Parameters
- strA
- Type: SystemString
The first string to compare - strB
- Type: SystemString
The second string to compare - ignoreCase
- Type: SystemBoolean
If true compare is case insensitive - cui
- Type: System.GlobalizationCultureInfo
An object that supplies culture-specific comparison information
Return Value
Type:
Int32See Also