Makes the specified Url relative with respect to the current one.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Function MakeRelative ( _
url As Url _
) As String
'使用
Dim instance As Url
Dim url As Url
Dim returnValue As String
returnValue = instance.MakeRelative(url)
public string MakeRelative(
Url url
)
public:
String^ MakeRelative(
Url^ url
)
public function MakeRelative(
url : Url
) : String
Parameters
url
Type: Microsoft.VisualStudio.Shell.UrlThe Url to make relative.
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.
Permissions
- 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.