Partilhar via


Url.MakeRelative(Url) Method

Definition

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

public:
 System::String ^ MakeRelative(Microsoft::VisualStudio::Shell::Url ^ url);
std::wstring MakeRelative(Microsoft::VisualStudio::Shell::Url const & url);
public string MakeRelative (Microsoft.VisualStudio.Shell.Url url);
member this.MakeRelative : Microsoft.VisualStudio.Shell.Url -> string
Public Function MakeRelative (url As Url) As String

Parameters

url
Url

The Url to make relative.

Returns

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.

Applies to