PackageUtilities.GetPathDistance(Uri, Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.