---
title: AddCustomProperty
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodriver/addcustomproperty
---

# AddCustomProperty

Adds a custom property object to the video driver.

## Declaration

```occ
kern_return_t AddCustomProperty(IOUserVideoCustomProperty *in_custom_property);
```

## Parameters

- `in_custom_property`: The custom property object being added.

## Return Value

Return Value kIOReturnSuccess on success

## See Also

### Working with custom properties

- [RemoveCustomProperty](videodriverkit/iouservideodriver/removecustomproperty.md)
- [IOUserVideoCustomProperty](videodriverkit/iouservideocustomproperty.md)
