Table of Contents

Method SetQuery

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

SetQuery(string, params string?[])

Sets (removes and adds) a query parameter with multiple values in the URL.

public UrlBuilder SetQuery(string key, params string?[] values)

Parameters

key string

The key of the query parameter.

values string[]

The values of the query parameter.

Returns

UrlBuilder

The current UrlBuilder instance, with the query parameter set.

SetQuery(string, string?)

Sets (removes and adds) a query parameter with a single value in the URL.

public UrlBuilder SetQuery(string key, string? value)

Parameters

key string

The key of the query parameter.

value string

The value of the query parameter, or null to add an empty value.

Returns

UrlBuilder

The current UrlBuilder instance, with the query parameter set.