PackUriHelper.IsRelationshipPartUri Method (Uri)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether a specified URI is the URI of a PackageRelationship part.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public static bool IsRelationshipPartUri(
	Uri partUri
)

Parameters

partUri
Type: System.Uri

The URI to check for a PackageRelationship part.

Return Value

Type: System.Boolean

true if partUri identifies a PackageRelationship part; otherwise, false.

Exception Condition
ArgumentNullException

partUri is null.

ArgumentException

partUri is an absolute URI.

-or-

partUri is an invalid PackagePart syntax.

.NET Framework
Available since 3.0
Return to top
Show: