C# Class Nexus.Client.Util.UriUtil

Utility class for working with Uris.
Mostra file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
BuildUri ( string p_strUri ) : Uri

Builds a Uri from the given string.

If the given string is not a valid Uri, we try turning it into an HTTP Uri.

TryBuildUri ( string p_strUri, Uri &p_uriUri ) : bool

Tries to build a Uri from the given string.

If the given string is not a valid Uri, we try turning it into an HTTP Uri.

Method Details

BuildUri() public static method

Builds a Uri from the given string.
If the given string is not a valid Uri, we try turning it into an HTTP Uri.
public static BuildUri ( string p_strUri ) : Uri
p_strUri string The string from which to construct a .
return System.Uri

TryBuildUri() public static method

Tries to build a Uri from the given string.
If the given string is not a valid Uri, we try turning it into an HTTP Uri.
public static TryBuildUri ( string p_strUri, Uri &p_uriUri ) : bool
p_strUri string The string from which to construct a .
p_uriUri System.Uri The constructed .
return bool