次の方法で共有


Url.MakeRelative Method

Makes the specified Url relative with respect to the current one.

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

Syntax

'宣言
Public Function MakeRelative ( _
    url As Url _
) As String
public string MakeRelative(
    Url url
)

Parameters

Return Value

Type: System.String
Using the current Url as the base, the relative path of url.

Remarks

If the scheme or host properties are different (comparing url to the current Url), this method returns the absolute path of url. Otherwise, it returns the unescaped relative path.

.NET Framework Security

See Also

Reference

Url Class

Microsoft.VisualStudio.Shell Namespace