Compare()

Uri::Compare(const SharedPtr<Uri>&, const SharedPtr<Uri>&, UriComponents, UriFormat, StringComparison) method

Compares the specified Uri objects using the specified comparison rules.

static int32_t System::Uri::Compare(const SharedPtr<Uri> &uri1, const SharedPtr<Uri> &uri2, UriComponents partsToCompare, UriFormat compareFormat, StringComparison comparisonType)

Arguments

ParameterTypeDescription
uri1const SharedPtr<Uri>&The first comparand
uri2const SharedPtr<Uri>&The second comparand
partsToCompareUriComponentsSpecifies the parts of uri1 and uri2 to compare
compareFormatUriFormatSpecifies the character escaping used when components of URIs are compared
comparisonTypeStringComparisonOne of the StringComparison values

Return Value

A negative value if uri1 is less than uri2; 0 if uri1 and uri2 are equal; a positive value if uri1 is greater than uri2

See Also