Determines whether two strings match.
[Visual Basic] Overloads Shadows Public Function Equals( _ ByVal value As String _ ) As Boolean [C#] public new bool Equals( string value ); [C++] public: new bool Equals( String* value ); [JScript] public new function Equals( value : String ) : Boolean;
Value | Condition |
---|---|
true | If value is a string, and if both value and this instance are a case-sensitive and match exactly. |
false | If null. |
The Equals method compares two strings to determine whether they match exactly and returns a Boolean representation of their relationship. The comparison is case-sensitive. Both the value and this instance must meet the following conditions to be true:
String Class | String Members | System Namespace | String.Equals Overload List