---
title: SetQualifierAndDataValue
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideocustomproperty/setqualifieranddatavalue
---

# SetQualifierAndDataValue

Sets the custom property’s data value.

## Declaration

```occ
kern_return_t SetQualifierAndDataValue(OSObject *in_qualifier_data, OSObject *in_data);
```

## Parameters

- `in_qualifier_data`: The qualifier data OSObject for the custom property that corresponds to the data value. Must be nullptr if qualifier data type is CustomPropertyDataTypeNone. Must be an OSString if qualifier data type is CustomPropertyDataTypeOSString. Must be an OSDictionary if qualifier data type is CustomPropertyDataTypeOSDictionary.
- `in_data`: The data OSObject for the custom property that corresponds to the qualifier. Must be an OSString if data type is CustomPropertyDataTypeOSString. Must be an OSDictionary if data type is CustomPropertyDataTypeOSDictionary. Value cannot be a nullptr.

## Return Value

Return Value kIOReturnSuccess on success.

## See Also

### Accessing the data value

- [GetCustomPropertyValueWithQualifier](videodriverkit/iouservideocustomproperty/getcustompropertyvaluewithqualifier.md)
- [GetCustomPropertyInfo](videodriverkit/iouservideocustomproperty/getcustompropertyinfo.md)
- [IOUserVideoCustomPropertyInfo](videodriverkit/videodriverkit/iouservideocustompropertyinfo.md)
