---
title: "description(withLocale:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsset/description(withlocale:)"
---

# description(withLocale:)

Returns a string that represents the contents of the set, formatted as a property list.

## Declaration

```swift
func description(withLocale locale: Any?) -> String
```

## Parameters

- `locale`: On iOS and macOS 10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale.In OS X v10.4 and earlier it must be an instance of NSDictionary.

## Return Value

Return Value A string that represents the contents of the set, formatted as a property list.

## Discussion

Discussion This method sends each of the set’s members  descriptionWithLocale: with locale passed as the sole parameter. If the set’s members do not respond to descriptionWithLocale:, this method sends description instead.

## See Also

### Describing a Set

- [description](foundation/nsset/description.md)
