---
title: "classNameDecoded(forArchiveClassName:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsunarchiver/classnamedecoded(forarchiveclassname:)-swift.method"
---

# classNameDecoded(forArchiveClassName:)

Returns the name of the class that will be used when instantiating objects whose ostensible class, according to the archived data, is a given name.

## Declaration

```swift
func classNameDecoded(forArchiveClassName inArchiveName: String) -> String
```

## Parameters

- `inArchiveName`: The ostensible name of a class in an archive.

## Return Value

Return Value The name of the class that will be used when instantiating objects whose ostensible class, according to the archived data, is nameInArchive. Returns nameInArchive unless a substitute name has been specified using the instance method (not the class method) decodeClassName(_:asClassName:).

## See Also

### Substituting classes or objects

- [classNameDecoded(forArchiveClassName:)](foundation/nsunarchiver/classnamedecoded(forarchiveclassname:)-swift.type.method.md)
- [decodeClassName(_:asClassName:)](foundation/nsunarchiver/decodeclassname(_:asclassname:)-swift.type.method.md)
- [decodeClassName(_:asClassName:)](foundation/nsunarchiver/decodeclassname(_:asclassname:)-swift.method.md)
- [replace(_:with:)](foundation/nsunarchiver/replace(_:with:).md)
