Method AddQueryIf
AddQueryIf(string, string?[], bool)
Conditionally adds a query parameter with multiple values to the URL.
public UrlBuilder AddQueryIf(string key, string?[] values, bool condition)
Parameters
keystringThe key of the query parameter.
valuesstring[]The values of the query parameter, or an array containing null values to add empty values.
conditionboolThe condition under which the query parameter should be added.
Returns
- UrlBuilder
The current UrlBuilder instance, with the query parameter added if
conditionis true.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語