Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CompareInfo.Compare Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Compares two strings.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodCompare(String, Int32, Int32, String, Int32, Int32)

Compares a section of one string with a section of another string.

System_CAPS_pubmethodCompare(String, Int32, Int32, String, Int32, Int32, CompareOptions)

Compares a section of one string with a section of another string using the specified CompareOptions value.

System_CAPS_pubmethodCompare(String, Int32, String, Int32)

Compares the end section of a string with the end section of another string.

System_CAPS_pubmethodCompare(String, Int32, String, Int32, CompareOptions)

Compares the end section of a string with the end section of another string using the specified CompareOptions value.

System_CAPS_pubmethodCompare(String, String)

Compares two strings.

System_CAPS_pubmethodCompare(String, String, CompareOptions)

Compares two strings using the specified CompareOptions value.

Return to top
Show:
© 2018 Microsoft