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

# AddCustomProperty

Adds an custom property object to this object.

## Declaration

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

## Parameters

- `in_custom_property`: A IOUserVideoCustomProperty object that should be added to the IOUserVideoObject

## Return Value

Return Value kIOReturnSuccess on success

## See Also

### Using custom properties

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