---
title: setProperty
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserusbhosthiddevice/setproperty
---

# setProperty

Updates the specified property on the corresponding kernel object.

## Declaration

```occ
virtual void setProperty(OSObject *key, OSObject *value);
```

## Parameters

- `key`: The property key.
- `value`: The property value.

## See Also

### Configuring the Device

- [setProtocol](hiddriverkit/iouserusbhosthiddevice/setprotocol.md)
- [setIdle](hiddriverkit/iouserusbhosthiddevice/setidle.md)
- [setIdlePolicy](hiddriverkit/iouserusbhosthiddevice/setidlepolicy.md)
- [reset](hiddriverkit/iouserusbhosthiddevice/reset.md)
- [USBIdlePolicyType](hiddriverkit/usbidlepolicytype.md)
