---
title: setProperty
framework: javascriptcore
role: symbol
role_heading: Instance Property
path: javascriptcore/jsstaticvalue/setproperty
---

# setProperty

A callback to invoke when setting the property’s value.

## Declaration

```swift
var setProperty: JSObjectSetPropertyCallback!
```

## Discussion

Discussion This value may be NULL if the property has the ReadOnly attribute.

## See Also

### Accessing Static Value Information

- [name](javascriptcore/jsstaticvalue/name.md)
- [getProperty](javascriptcore/jsstaticvalue/getproperty.md)
- [attributes](javascriptcore/jsstaticvalue/attributes.md)
