---
title: conformsTo
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iohidelement/conformsto
---

# conformsTo

## Declaration

```occ
virtual bool conformsTo(uint32_t usagePage, uint32_t usage);
```

## Parameters

- `usagePage`: The usage page to check for conformity.
- `usage`: The usage to check for conformity.

## Return Value

Return Value Returns a bool specifying if the element conforms to the provided usage page and usage.

## Discussion

Discussion Checks if the element conforms to the provided usage page and usage somewhere in its hierarchy.
