NevronOpenVision
Nevron.Nov Namespace / NUri Class / MakeRelativeUri Method
The URI to compare to the current URI.
In This Topic
    MakeRelativeUri Method
    In This Topic
    Determines the difference between two NUri instances and returns the resulting relative URI.
    Syntax
    public NUri MakeRelativeUri( 
       NUri toUri
    )

    Parameters

    toUri
    The URI to compare to the current URI.

    Return Value

    If the hostname and scheme of this URI instance and toUri are the same, then this method returns a relative Uri that, when appended to the current URI instance, yields uri. If the hostname or scheme is different, then this method returns an URI that represents the toUri parameter.
    Exceptions
    ExceptionDescription
    toUri is null.
    The current or the provided URI is not absolute.
    Remarks
    For example, if the current URI is "https://www.nevron.com" and the toUri is "https://www.nevron.com/images/bar-chart.png", then this method will result in the relative URI "images/bar-chart.png".
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also