System::Uri::MakeRelative method

Uri::MakeRelative method

Determines the difference between two Uri instances.

String System::Uri::MakeRelative(const SharedPtr<Uri> &toUri)
ParameterTypeDescription
toUriconst SharedPtr<Uri>&The URI to compare to the current URI

ReturnValue

If the hostname and scheme of the URIs represented by the current object and toUri are the same, then this method returns a String that represents a relative Uri, when appended to the current URI instance, yields toUri. If the hostname or scheme is different, then this method returns a String that represents the uri parameter.

See Also