
## set {#str-str}

Sets value of the first found name-value pair to the specified value and removes the others.
If no name-value pairs with the specified name are found, new one will be appended to the list.



```python
def set(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | str | Key which will be used to find name-value pairs. |
| value | str | Value which will be set. |



### See Also
* module [`aspose.html`](../../)
* class [`IUrlSearchParams`](/html/python-net/aspose.html/iurlsearchparams)
