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.
'Declaration
Public Shared Function TryResolve( _
ByVal As NUri, _
ByVal As System.String, _
ByRef 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 ,
System.string ,
out NUriBase
)
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.
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)