---
title: CopyProperties
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/ioservice/copyproperties
---

# CopyProperties

Returns the registry properties associated with the current service.

## Declaration

```occ
virtual kern_return_t CopyProperties(OSDictionary **properties);
```

## Parameters

- `properties`: A variable for storing the properties. On return, the variable contains a dictionary with the properties, or NULL if the service has no registered properties. If this method returns a valid dictionary, you are responsible for releasing that dictionary when you are finished with it. It is a programmer error to specify NULL or an invalid pointer for this parameter.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## See Also

### Managing the Registry Properties

- [SetProperties](driverkit/ioservice/setproperties.md)
- [SearchProperty](driverkit/ioservice/searchproperty.md)
- [IOPropertyName](driverkit/iopropertyname.md)
- [IORegistryPlaneName](driverkit/ioregistryplanename.md)
- [Search Options](driverkit/3325572-search_options.md)
