---
id: fast-element.accessor.setvalue
title: Accessor.setValue() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [Accessor](./fast-element.accessor.md) &gt; [setValue](./fast-element.accessor.setvalue.md)

## Accessor.setValue() method

Sets the value of the property on the source object.

<b>Signature:</b>

```typescript
setValue(source: any, value: any): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  source | any | The source object to access. |
|  value | any | The value to set the property to. |

<b>Returns:</b>

void
