---
title: "decode(_:forKey:configuration:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/keyeddecodingcontainer/decode(_:forkey:configuration:)-6t8ew"
---

# decode(_:forKey:configuration:)

## Declaration

```swift
func decode<T, C>(_: T.Type, forKey key: KeyedDecodingContainer<K>.Key, configuration: C.Type) throws -> T where T : DecodableWithConfiguration, C : DecodingConfigurationProviding, T.DecodingConfiguration == C.DecodingConfiguration
```
