---
title: enumCodeValue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventdescriptor/enumcodevalue
---

# enumCodeValue

The contents of the receiver as an enumeration type, coercing to typeEnumerated if necessary.

## Declaration

```swift
var enumCodeValue: OSType { get }
```

## Discussion

Discussion The contents of the descriptor, as an enumeration type, or 0 if an error occurs.

## See Also

### Getting Information About a Descriptor

- [aeDesc](foundation/nsappleeventdescriptor/aedesc.md)
- [booleanValue](foundation/nsappleeventdescriptor/booleanvalue.md)
- [coerce(toDescriptorType:)](foundation/nsappleeventdescriptor/coerce(todescriptortype:).md)
- [data](foundation/nsappleeventdescriptor/data.md)
- [descriptorType](foundation/nsappleeventdescriptor/descriptortype.md)
- [int32Value](foundation/nsappleeventdescriptor/int32value.md)
- [numberOfItems](foundation/nsappleeventdescriptor/numberofitems.md)
- [stringValue](foundation/nsappleeventdescriptor/stringvalue.md)
- [typeCodeValue](foundation/nsappleeventdescriptor/typecodevalue.md)
