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

# description(withLocale:)

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

## Declaration

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

## Parameters

- `locale`: An doc://com.apple.foundation/documentation/Foundation/NSLocale object or an NSDictionary object that specifies options used for formatting each of the ordered set’s elements (where recognized). Specify nil if you don’t want the elements formatted.

## Return Value

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

## Discussion

Discussion For a description of how locale is applied to each element in the receiving ordered set, see description(withLocale:indent:).

## See Also

### Describing a Set

- [description](foundation/nsorderedset/description.md)
- [description(withLocale:indent:)](foundation/nsorderedset/description(withlocale:indent:).md)
