---
title: "SecPolicyCopyProperties(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/secpolicycopyproperties(_:)"
---

# SecPolicyCopyProperties(_:)

Returns a dictionary containing a policy’s properties.

## Declaration

```swift
func SecPolicyCopyProperties(_ policyRef: SecPolicy) -> CFDictionary?
```

## Parameters

- `policyRef`: The policy from which properties should be copied.

## Return Value

Return Value A dictionary with the policy’s properties. See Security Policy Keys for a list of valid keys. In Objective-C, call the CFRelease function to free the dictionary’s memory when you are done with it.
