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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기