Sisk

Method

UrlBuilder.AddQuery

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

AddQuery(string, string?) #

Adds a query parameter to the URL.

C#
public UrlBuilder AddQuery(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.

AddQuery(string, params string?[]) #

Adds a query parameter with multiple values to the URL.

C#
public UrlBuilder AddQuery(string key, params string?[] values)

Parameters #

key string

The key of the query parameter.

values string?[]

The values of the query parameter, or an array containing null values to add empty values.

Returns #

UrlBuilder

The current UrlBuilder instance.

Type to search the documentation and the API reference.