Compartir a través de


String.Equals Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Determines whether two String objects have the same value.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Determines whether this instance of String and a specified object, which must also be a String object, have the same value. (Overrides Object.Equals(Object).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(String) Determines whether this instance and another specified String object have the same value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(String, String) Determines whether two specified String objects have the same value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(String, StringComparison) Determines whether this string and a specified String object have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(String, String, StringComparison) Determines whether two specified String objects have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.

Top

See Also

Reference