Click or drag to resize
CMSStringCompare Method (String, String, CultureInfo, CompareOptions)

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.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 10.0.0
Syntax
C#
[ObsoleteAttribute("Use String.Compare(string a, string b, CultureInfo culture, CompareOptions options).")]
public static int Compare(
	string strA,
	string strB,
	CultureInfo cui,
	CompareOptions options
)

Parameters

strA
Type: SystemString
The first string to compare
strB
Type: SystemString
The second string to compare
cui
Type: System.GlobalizationCultureInfo
An object that supplies culture-specific comparison information
options
Type: System.GlobalizationCompareOptions
Options to use when performing the comparison (such as ignoring case or symbols)

Return Value

Type: Int32
See Also