---
title: "property_getAttributes(_:)"
framework: Objective-C Runtime
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 13.1+, macOS 10.5+, tvOS 9.0+, visionOS 1.0+, watchOS 1.0+]
path: "objectivec/property_getattributes(_:)"
---

# property_getAttributes(_:)

Returns the attribute string of a property.

## Declaration

```swift
func property_getAttributes(_ property: objc_property_t) -> UnsafePointer<CChar>?
```

## Return Value

Return Value A C string containing the property’s attributes.

## Discussion

Discussion The format of the attribute string is described in Declared Properties in Objective-C Runtime Programming Guide.

## See Also

### Working with Properties

- [property_getName(_:)](objectivec/property_getname(_:).md)
- [property_copyAttributeValue(_:_:)](objectivec/property_copyattributevalue(_:_:).md)
- [property_copyAttributeList(_:_:)](objectivec/property_copyattributelist(_:_:).md)
