Determines whether two objects, that are strings, match.
[Visual Basic] Overloads Overrides Public Function Equals( _ ByVal obj As Object _ ) As Boolean [C#] public override bool Equals( object obj ); [C++] public: override bool Equals( Object* obj ); [JScript] public override function Equals( obj : Object ) : Boolean;
Value | Condition |
---|---|
true | If the object is a string and if both the object and this instance are a case-sensitive exactly match, otherwise false. |
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 object and this instance must meet the following conditions to be true:
String Class | String Members | System Namespace | String.Equals Overload List | Object