Uri.Equals Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Compares two Uri instances for equality.
Assembly: System (in System.dll)
Parameters
- comparand
- Type: System.Object
The Uri instance or a URI identifier to compare with the current instance.
Return Value
Type: System.BooleanA Boolean value that is true if the two instances represent the same URI; otherwise, false.
The Equals method compares the two instances without regard to user information (UserInfo) and fragment (Fragment) parts that they might contain. For example, given the URIs http://www.contoso.com/index.htm#search and http://user:password@www.contoso.com/index.htm, the Equals method would return true.
Note: |
|---|
The Equals method can be overridden in a derived class; use caution as a malicious entity could modify the method. You should not use this method to perform security checks unless you know that this instance came from a trusted source. |
Note: