Collation.AreEqual MethodCollation.AreEqual MethodCollation::AreEqual Method
Parameters
- value1
- value2
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
trueTruetrue if the two strings are equal; otherwise falseFalsefalse.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
value1 or value2 is null
a null reference (Nothing in Visual Basic)
nullptr.
|
Remarks
This method implements the equality and inequality operators under this collation, and should follow the same semantics.
The default implementation calls the Compare (string, string)Compare (String, String)Compare (String^, String^) method and compares the result with 0.
