Returns the URI of the relationship part associated with a specified PackagePart.
Namespace:
System.IO.Packaging
Assembly:
WindowsBase (in WindowsBase.dll)
Visual Basic (Declaration)
Public Shared Function GetRelationshipPartUri ( _
partUri As Uri _
) As Uri
Dim partUri As Uri
Dim returnValue As Uri
returnValue = PackUriHelper.GetRelationshipPartUri(partUri)
public static Uri GetRelationshipPartUri(
Uri partUri
)
public:
static Uri^ GetRelationshipPartUri(
Uri^ partUri
)
public static function GetRelationshipPartUri(
partUri : Uri
) : Uri
You cannot use methods in XAML.
| Exception | Condition |
|---|
| ArgumentNullException |
partUri is nullNothingnullptra null reference (Nothing in Visual Basic). |
| ArgumentException |
partUri syntax is not valid for a package part URI. -or-
partUri is an absolute URI. -or-
partUri references a relationship part. |
partUri must identify either the Package ("/") or a PackagePart that is not a PackageRelationship part.
For more information about PackageRelationship parts, see Section 9.3 "Relationships" in the Open Packaging Conventions Specification available for download at Specifications and License Downloads.
Pack URIs in Windows Presentation Foundation
Open Packaging Conventions Specification
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