Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Uri.MakeRelative Method

Determines the difference between two Uri instances.

[Visual Basic]
Public Function MakeRelative( _
   ByVal toUri As Uri _
) As String
public string MakeRelative(
 Uri toUri
public: String* MakeRelative(
 Uri* toUri
public function MakeRelative(
   toUri : Uri
) : String;


The URI to compare to the current URI.

Return Value

If the two URIs are the same except for the path information, then that difference; if the two have additional differences, the URI of toUri.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace

© 2015 Microsoft