---
title: retain
framework: cfnetwork
role: symbol
role_heading: Instance Property
path: cfnetwork/cfhostclientcontext/retain
---

# retain

The callback used to add a retain for the host on the info pointer for the life of the host, and may be used for temporary references the host needs to take. This callback returns the actual info pointer to store in the host, almost always just the pointer passed as the parameter.

## Declaration

```swift
var retain: CFAllocatorRetainCallBack?
```

## See Also

### Instance Properties

- [copyDescription](cfnetwork/cfhostclientcontext/copydescription.md)
- [info](cfnetwork/cfhostclientcontext/info.md)
- [release](cfnetwork/cfhostclientcontext/release.md)
- [version](cfnetwork/cfhostclientcontext/version.md)
