Url.MakeRelative(Url) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.