---
title: retain
framework: Core Foundation
role: symbol
role_heading: Instance Property
path: corefoundation/cftreecontext/retain
---

# retain

The callback used to retain the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. This value may be NULL.

## Declaration

```swift
var retain: CFTreeRetainCallBack!
```
