Microsoft Silverlight will reach end of support after October 2021. Learn more.
Compares the specified parts of two URIs using the specified comparison rules.
Assembly: System (in System.dll)
'Declaration Public Shared Function Compare ( _ uri1 As Uri, _ uri2 As Uri, _ partsToCompare As UriComponents, _ compareFormat As UriFormat, _ comparisonType As StringComparison _ ) As Integer
public static int Compare( Uri uri1, Uri uri2, UriComponents partsToCompare, UriFormat compareFormat, StringComparison comparisonType )
A bitwise combination of the UriComponents values that specifies the parts of uri1 and uri2 to compare.
One of the UriFormat values that specifies the character escaping used when the URI components are compared.
If both uri1 and uri2 are nulla null reference (Nothing in Visual Basic), this method returns 0. When comparing URI values, a relative URI is always less than an absolute URI, and a non-null URI is always greater than a null URI. For cases where both uri1 and uri2 are not nulla null reference (Nothing in Visual Basic) and are both relative URIs or both absolute URIs, the String.Compare(String, String, StringComparison) method performs the comparison.
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.