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

# key(_:)

Match against the specified key name at the root of the entitlements dictionary.

## Declaration

```swift
static func key(_ keyName: String) -> EntitlementsQuery
```

## Discussion

Discussion Keys are matched byte for byte (i.e. no unicode normalization occurs). Chain additional qualifiers to constrain the value of the key.
