Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compare Method
Collapse the table of content
Expand the table of content

String.Compare Method

Compares two specified String objects.

Name Description
String.Compare (String, String) Compares two specified String objects.

Supported by the .NET Compact Framework.

String.Compare (String, String, Boolean) Compares two specified String objects, ignoring or honoring their case.

Supported by the .NET Compact Framework.

String.Compare (String, String, StringComparison) Compares two specified String objects. A parameter specifies whether the comparison uses the current or invariant culture, honors or ignores case, and uses word or ordinal sort rules.

Supported by the .NET Compact Framework.

String.Compare (String, String, Boolean, CultureInfo) Compares two specified String objects, ignoring or honoring their case, and using culture-specific information to influence the comparison.

Supported by the .NET Compact Framework.

String.Compare (String, Int32, String, Int32, Int32) Compares substrings of two specified String objects.

Supported by the .NET Compact Framework.

String.Compare (String, Int32, String, Int32, Int32, Boolean) Compares substrings of two specified String objects, ignoring or honoring their case.

Supported by the .NET Compact Framework.

String.Compare (String, Int32, String, Int32, Int32, StringComparison) Compares substrings of two specified String objects.

Supported by the .NET Compact Framework.

String.Compare (String, Int32, String, Int32, Int32, Boolean, CultureInfo) Compares substrings of two specified String objects, ignoring or honoring their case, and using culture-specific information to influence the comparison.

Supported by the .NET Compact Framework.

Community Additions

ADD
Show:
© 2015 Microsoft