Compares the specified parts of two URIs using the specified comparison rules.
Assembly: System (in System.dll)
static member Compare : uri1:Uri * uri2:Uri * partsToCompare:UriComponents * compareFormat:UriFormat * comparisonType:StringComparison -> int
- Type: System.UriComponents
A bitwise combination of the UriComponents values that specifies the parts of uri1 and uri2 to compare.
- Type: System.UriFormat
One of the UriFormat values that specifies the character escaping used when the URI components are compared.
If both uri1 and uri2 are a 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 a 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.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0, 2.0, 1.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8