PackageUtilities.GetPathDistance Method
Calculates the distance between two paths.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Public Shared Function GetPathDistance ( _
uriBase As Uri, _
uriRelativeTo As Uri _
) As String
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.