Click or drag to resize
CMSStringCompare Method (String, String, Boolean)
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: 8.2.23
Syntax
C#
public static int Compare(
	string strA,
	string strB,
	bool ignoreCase
)

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

Return Value

Type: Int32
See Also