Nevron Open Vision Documentation
Nevron.Nov Namespace / NUri Class / TryResolve Method
The absolute URI to use for URI resolution.
The string to create an absolute URI from.
The resulting absolute URI.


In This Topic
    TryResolve Method
    In This Topic
    Tries to get an absolute URI (an URL or a data URI) from the given string. If the string represents a relative URI, it is combined with the given base URI in order to resolve it, i.e. to create an absolute URI.
    Syntax
    'Declaration
     
    
    Public Shared Function TryResolve( _
       ByVal baseUri As NUri, _
       ByVal uriString As System.String, _
       ByRef result As NUriBase _
    ) As System.Boolean
    'Usage
     
    
    Dim baseUri As NUri
    Dim uriString As System.String
    Dim result As NUriBase
    Dim value As System.Boolean
     
    value = NUri.TryResolve(baseUri, uriString, result)
    public static System.bool TryResolve( 
       NUri baseUri,
       System.string uriString,
       out NUriBase result
    )

    Parameters

    baseUri
    The absolute URI to use for URI resolution.
    uriString
    The string to create an absolute URI from.
    result
    The resulting absolute URI.

    Return Value

    True if an absolute URI was successfully created.
    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