Class UriExtensions
Provides extension methods for Uri objects.
Inherited Members
Namespace: Coree.NETStandard.CoreeHttpClient
Assembly: Coree.NETStandard.dll
Syntax
public static class UriExtensions
Methods
| <<<<<<< HEAD Edit this page View Source ======= Edit this page View Source >>>>>>> releaseAddOrUpdateQueryParameters(Uri, Dictionary<string, string>?)
Adds new query parameters to the URI or updates them if they already exist.
Declaration
public static Uri AddOrUpdateQueryParameters(this Uri uri, Dictionary<string, string>? parametersToAddOrUpdate)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI to add or update query parameters for. |
Dictionary<string, string> | parametersToAddOrUpdate | The parameters to add or update in the URI query. |
Returns
Type | Description |
---|---|
Uri | A new Uri object with the added or updated query parameters. |
Remarks
If the input dictionary is null, the original Uri is returned without modifications. Parameters are URL-encoded as necessary.