PackageUtilities::GetPathDistance Method (Uri^, Uri^)

 

Calculates the distance between two paths.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static String^ GetPathDistance(
	Uri^ uriBase,
	Uri^ uriRelativeTo
)

Parameters

uriBase
Type: System::Uri^

The base Uri.

uriRelativeTo
Type: System::Uri^

The relative Uri.

Return Value

Type: System::String^

The relative path.

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.

Return to top
Show: