PackageUtilities.GetPathDistance Method

Calculates the distance between two paths.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

声明
Public Shared Function GetPathDistance ( _
    uriBase As Uri, _
    uriRelativeTo As Uri _
) As String
用法
Dim uriBase As Uri
Dim uriRelativeTo As Uri
Dim returnValue As String

returnValue = PackageUtilities.GetPathDistance(uriBase, _
    uriRelativeTo)
public static string GetPathDistance(
    Uri uriBase,
    Uri uriRelativeTo
)
public:
static String^ GetPathDistance(
    Uri^ uriBase, 
    Uri^ uriRelativeTo
)
static member GetPathDistance : 
        uriBase:Uri * 
        uriRelativeTo:Uri -> string 
public static function GetPathDistance(
    uriBase : Uri, 
    uriRelativeTo : Uri
) : String

Parameters

Return Value

Type: System.String
The relative path.

Remarks

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

.NET Framework Security

See Also

Reference

PackageUtilities Class

PackageUtilities Members

Microsoft.VisualStudio.Shell Namespace