---
title: "keyPrefix(_:)"
framework: lightweightcoderequirements
role: symbol
role_heading: Instance Method
path: "lightweightcoderequirements/entitlementsquery/keyprefix(_:)-swift.method"
---

# keyPrefix(_:)

Match the specified key prefix in a nested dictionary.

## Declaration

```swift
func keyPrefix(_ keyPrefix: String) -> EntitlementsQuery
```

## Discussion

Discussion Keys are matched byte for byte (i.e. no unicode normalization occurs). keyPrefix will match only the first key with the prefix. Chained qualifiers will be applied to the value of that single key only.
