Namespace:
System.IO.Packaging
Assembly:
WindowsBase (in WindowsBase.dll)
Visual Basic (Declaration)
Public Shared Function GetSourcePartUriFromRelationshipPartUri ( _
relationshipPartUri As Uri _
) As Uri
Dim relationshipPartUri As Uri
Dim returnValue As Uri
returnValue = PackUriHelper.GetSourcePartUriFromRelationshipPartUri(relationshipPartUri)
public static Uri GetSourcePartUriFromRelationshipPartUri(
Uri relationshipPartUri
)
public:
static Uri^ GetSourcePartUriFromRelationshipPartUri(
Uri^ relationshipPartUri
)
public static function GetSourcePartUriFromRelationshipPartUri(
relationshipPartUri : Uri
) : Uri
You cannot use methods in XAML.
| Exception | Condition |
|---|
| ArgumentNullException |
relationshipPartUri is nullNothingnullptra null reference (Nothing in Visual Basic). |
| ArgumentException |
relationshipPartUri is an absolute URI. -or-
relationshipPartUri syntax is not valid for a PackagePart. -or-
relationshipPartUri does not reference a relationship part. -or- The SourceUri of the relationship part references another relationship part (not valid, see Remarks). |
The SourceUri property of a relationship part must identify either the Package ("/") or a PackagePart that is not a PackageRelationship.
For example, if the package part "/files/document.xaml" is the source owner of the relationship part "/files/_rels/document.xaml.rels", calling GetSourcePartUriFromRelationshipPartUri with the relationshipPartUri parameter of "/files/_rels/document.xaml.rels" returns the SourceUri of "/files/document.xaml".
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