MakeRelativeUri()

Uri::MakeRelativeUri(const SharedPtr<Uri>&) method

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

SharedPtr<Uri> System::Uri::MakeRelativeUri(const SharedPtr<Uri> &uri)

Arguments

ParameterTypeDescription
uriconst SharedPtr<Uri>&The comparand

Return Value

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