---
title: "CMSEncoderGetHasDetachedContent(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/cmsencodergethasdetachedcontent(_:_:)"
---

# CMSEncoderGetHasDetachedContent(_:_:)

Indicates whether the message is to have detached content.

## Declaration

```swift
func CMSEncoderGetHasDetachedContent(_ cmsEncoder: CMSEncoder, _ detachedContentOut: UnsafeMutablePointer<DarwinBoolean>) -> OSStatus
```

## Parameters

- `cmsEncoder`: The CMSEncoder reference returned by the CMSEncoderCreate function.
- `detachedContentOut`: Returns TRUE if the message has detached content.

## Return Value

Return Value A result code. See Security Framework Result Codes.

## Discussion

Discussion This function returns the value specified in CMSEncoderSetHasDetachedContent if that function has been called; otherwise it returns FALSE.

## See Also

### Related Documentation

- [CMSEncoderSetHasDetachedContent(_:_:)](security/cmsencodersethasdetachedcontent(_:_:).md)
- [CMSDecoderCreate(_:)](security/cmsdecodercreate(_:).md)
