NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

String.Equals (Object)

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;

Parameters

obj
The object to compare with this instance.

Return Value

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.

Remarks

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:

See Also

String Class | String Members | System Namespace | String.Equals Overload List | Object