System::Uri::MakeRelativeUri method

Uri::MakeRelativeUri method

Determines the difference between URIs represented by the current and the specified Uri objects.

SharedPtr<Uri> System::Uri::MakeRelativeUri(const SharedPtr<Uri> &uri)
ParameterTypeDescription
uriconst SharedPtr<Uri>&The comparand

ReturnValue

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

See Also