#### [Abblix\.Utils](https://www.abblix.com/en/docs/api/abblix-utils 'index')
### [Abblix\.Utils](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils 'Abblix\.Utils')

## ParametersBuilder Class

Provides a builder for constructing and manipulating query strings or URI fragment parts\.

```csharp
public class ParametersBuilder
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → ParametersBuilder
### Constructors

## ParametersBuilder\(string\) Constructor {#Abblix.Utils.ParametersBuilder.ParametersBuilder(string)}

Initializes a new instance of the [ParametersBuilder](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.ParametersBuilder 'Abblix\.Utils\.ParametersBuilder') class\.

```csharp
public ParametersBuilder(string valuesString="");
```
#### Parameters

###### `valuesString` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Utils.ParametersBuilder.ParametersBuilder(string).valuesString}

A string representing the initial query string or URI fragment\.
### Properties

## ParametersBuilder\.this\[string\] Property {#Abblix.Utils.ParametersBuilder.this[string]}

The value associated with the specified parameter name\.

```csharp
public string? this[string name] { get; set; }
```
#### Parameters

###### `name` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Utils.ParametersBuilder.this[string].name}

The name of the parameter to get or set\.

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')
### Methods

## ParametersBuilder\.Add\(string, string\) Method {#Abblix.Utils.ParametersBuilder.Add(string,string)}

Appends a value under a name, keeping any value already stored under it\.

```csharp
public void Add(string name, string? value);
```
#### Parameters

###### `name` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Utils.ParametersBuilder.Add(string,string).name}

The name of the parameter to append to\.

###### `value` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Utils.ParametersBuilder.Add(string,string).value}

The value to append\.

### Remarks
The indexer replaces, which is what almost every parameter wants\. This is for the few that a
specification allows to repeat \(`resource` of RFC 8707, for one\), where each occurrence carries
its own meaning and replacing would silently drop all but the last\.

## ParametersBuilder\.Clear\(\) Method {#Abblix.Utils.ParametersBuilder.Clear()}

Clears all the parameters from the builder\.

```csharp
public void Clear();
```

## ParametersBuilder\.ToString\(\) Method {#Abblix.Utils.ParametersBuilder.ToString()}

Returns a string that represents the current query string or URI fragment\.

```csharp
public override string ToString();
```

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')  
A string that represents the current state of the builder\.
