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

# SetElementCategoryName

Sets the category name for the given element and scope of the video object.

## Declaration

```occ
kern_return_t SetElementCategoryName(IOUserVideoObjectPropertyElement in_element, IOUserVideoObjectPropertyScope in_scope, OSString *in_category_name);
```

## Parameters

- `in_element`: The IOUserVideoObjectPropertyElement
- `in_scope`: The IOUserVideoObjectPropertyScope
- `in_category_name`: OSString category name to set.

## Discussion

Discussion If the object can change the name dynamically, the object sends a notification to the host to update the object state on success. The object’s work queue synchronizes access to the value.

## See Also

### Working with elements

- [GetElementCategoryName](videodriverkit/iouservideoobject/getelementcategoryname.md)
- [GetElementName](videodriverkit/iouservideoobject/getelementname.md)
- [SetElementName](videodriverkit/iouservideoobject/setelementname.md)
- [GetElementNumberName](videodriverkit/iouservideoobject/getelementnumbername.md)
- [SetElementNumberName](videodriverkit/iouservideoobject/setelementnumbername.md)
