Url::MakeRelative Method (Url^)

 

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

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

public:
String^ MakeRelative(
	Url^ url
)

Parameters

url
Type: Microsoft.VisualStudio.Shell::Url^

The Url to make relative.

Return Value

Type: System::String^

Using the current Url as the base, the relative path of url.

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.

Return to top
Show: