다음을 통해 공유


PackageUtilities.GetPathDistance(Uri, Uri) Method

Definition

Calculates the distance between two paths.

public:
 static System::String ^ GetPathDistance(Uri ^ uriBase, Uri ^ uriRelativeTo);
public static string GetPathDistance (Uri uriBase, Uri uriRelativeTo);
static member GetPathDistance : Uri * Uri -> string
Public Function GetPathDistance (uriBase As Uri, uriRelativeTo As Uri) As String

Parameters

uriBase
Uri

The base Uri.

uriRelativeTo
Uri

The relative Uri.

Returns

The distance in path, if it can make it or the fullpath of the second uri if there if relative path does not make sense.

Remarks

This method returns an unescaped string version of the URI that's returned by MakeRelativeUri if the paths overlap (have the same root), and the path of the relative URI if they do not.

Applies to