---
title: "CFURLCreateResourcePropertiesForKeysFromBookmarkData(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfurlcreateresourcepropertiesforkeysfrombookmarkdata(_:_:_:)"
---

# CFURLCreateResourcePropertiesForKeysFromBookmarkData(_:_:_:)

Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data.

## Declaration

```swift
func CFURLCreateResourcePropertiesForKeysFromBookmarkData(_ allocator: CFAllocator!, _ resourcePropertiesToReturn: CFArray!, _ bookmark: CFData!) -> Unmanaged<CFDictionary>!
```

## Parameters

- `allocator`: The allocator to use to allocate memory for the new CFURL object. Pass NULL or doc://com.apple.corefoundation/documentation/CoreFoundation/kCFAllocatorDefault to use the current default allocator.
- `resourcePropertiesToReturn`: An array of names of URL resource properties. See doc://com.apple.corefoundation/documentation/CoreFoundation/common-file-system-resource-keys for a list of possible keys.
- `bookmark`: The bookmark data the resource values are derived from.

## Return Value

Return Value A dictionary of the requested resource values contained in bookmarkData.

## Discussion

Discussion This function does not attempt to resolve the bookmark data or perform I/O.

## See Also

### Getting and Setting File System Resource Properties

- [CFURLClearResourcePropertyCache(_:)](corefoundation/cfurlclearresourcepropertycache(_:).md)
- [CFURLClearResourcePropertyCacheForKey(_:_:)](corefoundation/cfurlclearresourcepropertycacheforkey(_:_:).md)
- [CFURLCopyResourcePropertiesForKeys(_:_:_:)](corefoundation/cfurlcopyresourcepropertiesforkeys(_:_:_:).md)
- [CFURLCopyResourcePropertyForKey(_:_:_:_:)](corefoundation/cfurlcopyresourcepropertyforkey(_:_:_:_:).md)
- [CFURLCreateResourcePropertyForKeyFromBookmarkData(_:_:_:)](corefoundation/cfurlcreateresourcepropertyforkeyfrombookmarkdata(_:_:_:).md)
- [CFURLSetResourcePropertiesForKeys(_:_:_:)](corefoundation/cfurlsetresourcepropertiesforkeys(_:_:_:).md)
- [CFURLSetResourcePropertyForKey(_:_:_:_:)](corefoundation/cfurlsetresourcepropertyforkey(_:_:_:_:).md)
- [CFURLSetTemporaryResourcePropertyForKey(_:_:_:)](corefoundation/cfurlsettemporaryresourcepropertyforkey(_:_:_:).md)
