Editare

Partajați prin


PackUriHelper.ComparePackUri(Uri, Uri) Method

Definition

Returns a value that indicates whether two pack URIs are equivalent.

public:
 static int ComparePackUri(Uri ^ firstPackUri, Uri ^ secondPackUri);
public static int ComparePackUri (Uri? firstPackUri, Uri? secondPackUri);
public static int ComparePackUri (Uri firstPackUri, Uri secondPackUri);
static member ComparePackUri : Uri * Uri -> int
Public Shared Function ComparePackUri (firstPackUri As Uri, secondPackUri As Uri) As Integer

Parameters

firstPackUri
Uri

The first pack URI.

secondPackUri
Uri

The second pack URI.

Returns

A signed integer indicating the relationship between firstPackUri and secondPackUri.

Value Meaning
Less than 0 firstPackUri is less than secondPackUri.
0 firstPackUri is equivalent to secondPackUri.
Greater than 0 firstPackUri is greater than secondPackUri.

Exceptions

Either firstPackUri or secondPackUri is not an absolute URI.

-or-

Either firstPackUri or secondPackUri do not begin with a "pack://" scheme.

Remarks

If both firstPackUri and secondPackUri are null, ComparePackUri returns 0. When comparing pack URIs, a null URI is always less than a non-null URI. For cases where firstPackUri and secondPackUri are both absolute pack URIs, ComparePackUri performs the comparison.

Applies to

See also