---
title: "getEntry(for:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwtxtrecord/getentry(for:)"
---

# getEntry(for:)

Accesses an entry in a TXT record dictionary.

## Declaration

```swift
func getEntry(for key: String) -> NWTXTRecord.Entry?
```

## See Also

### Examining TXT Records

- [subscript(_:)](network/nwtxtrecord/subscript(_:).md)
- [dictionary](network/nwtxtrecord/dictionary.md)
