PackUriHelper.ComparePackUri(Uri, Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應