<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOService/SetProperties",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOService@F@SetProperties#*$@S@OSDictionary#"
  },
  "title" : "SetProperties"
}
-->

# SetProperties

Sends the dictionary of properties to the current service object.

```
virtual kern_return_t SetProperties(OSDictionary *properties);
```

## Parameters

`properties`

The registry properties to associate with the current service.

## Return Value

[`kIOReturnSuccess`](/documentation/DriverKit/kIOReturnSuccess) on success, or another value if an error occurs. For a list of error codes, see [Error Codes](/documentation/DriverKit/error-codes).

## Discussion

The default implementation of this method returns [`kIOReturnUnsupported`](/documentation/DriverKit/kIOReturnUnsupported). You can override this method and use it to modify the set of properties and values as needed. The changes you make apply only to the current service.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)