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

# keyPrefix(_:)

Match the specified key prefix at the root of the entitlements dicitonary. Chain additional qualifiers to constrain the value of the key.

## Declaration

```swift
static 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.
