---
title: "set method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg/iurlsearchparams/set/"
product: "Aspose.SVG for Python via .NET API References"
---


## 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.svg`](../../)
* class [`IUrlSearchParams`](/svg/python-net/aspose.svg/iurlsearchparams)
