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

# retain

The callback used to add a retain for the service or browser using info for the life of the service or browser. This callback may be used for temporary references the service or browser needs to take. This callback returns the actual info pointer so it can be stored in the service or browser. This field can be NULL.

## Declaration

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

## See Also

### Instance Properties

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