---
title: className
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptclassdescription/classname
---

# className

Returns the name of the class the receiver describes, as provided at initialization time.

## Declaration

```swift
var className: String? { get }
```

## Return Value

Return Value A class name. This may be either the human-readable name for the class—that is, the name that is used in a script—or the name of the Objective-C class that is instantiated to implement the class. To reliably obtain the implementation name, use implementationClassName.

## See Also

### Getting basic information about the script class

- [defaultSubcontainerAttributeKey](foundation/nsscriptclassdescription/defaultsubcontainerattributekey.md)
- [implementationClassName](foundation/nsscriptclassdescription/implementationclassname.md)
- [isLocationRequiredToCreate(forKey:)](foundation/nsscriptclassdescription/islocationrequiredtocreate(forkey:).md)
- [suiteName](foundation/nsscriptclassdescription/suitename.md)
