Returns a value that indicates whether two pack URIs are equivalent.
Namespace:
System.IO.Packaging
Assembly:
WindowsBase (in WindowsBase.dll)
Visual Basic (Declaration)
Public Shared Function ComparePackUri ( _
firstPackUri As Uri, _
secondPackUri As Uri _
) As Integer
Dim firstPackUri As Uri
Dim secondPackUri As Uri
Dim returnValue As Integer
returnValue = PackUriHelper.ComparePackUri(firstPackUri, _
secondPackUri)
public static int ComparePackUri(
Uri firstPackUri,
Uri secondPackUri
)
public:
static int ComparePackUri(
Uri^ firstPackUri,
Uri^ secondPackUri
)
public static function ComparePackUri(
firstPackUri : Uri,
secondPackUri : Uri
) : int
You cannot use methods in XAML.
Return Value
Type:
System..::.Int32A 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. |
| Exception | Condition |
|---|
| ArgumentException | Either firstPackUri or secondPackUri is not an absolute URI. -or- Either firstPackUri or secondPackUri do not begin with a "pack://" scheme. |
If both firstPackUri and secondPackUri are nullNothingnullptra null reference (Nothing in Visual Basic), 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0
Reference
Other Resources