---
title: "CMMetadataCreateKeySpaceFromIdentifier(allocator:identifier:keySpaceOut:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmmetadatacreatekeyspacefromidentifier(allocator:identifier:keyspaceout:)"
---

# CMMetadataCreateKeySpaceFromIdentifier(allocator:identifier:keySpaceOut:)

Creates a copy of the keyspace by using an identifier.

## Declaration

```swift
func CMMetadataCreateKeySpaceFromIdentifier(allocator: CFAllocator?, identifier: CFString, keySpaceOut: UnsafeMutablePointer<CFString?>) -> OSStatus
```

## Parameters

- `allocator`: The allocator to use for creating the identifier.
- `identifier`: The identifier to be inspected.
- `keySpaceOut`: Upon return, a pointer to the keyspace that was used to create the identifier.

## Return Value

Return Value If successful, a nonzero result code. See Metadata Identifier Error Codes.

## See Also

### Creating Metadata Identifiers

- [CMMetadataCreateIdentifierForKeyAndKeySpace(allocator:key:keySpace:identifierOut:)](coremedia/cmmetadatacreateidentifierforkeyandkeyspace(allocator:key:keyspace:identifierout:).md)
- [CMMetadataCreateKeyFromIdentifier(allocator:identifier:keyOut:)](coremedia/cmmetadatacreatekeyfromidentifier(allocator:identifier:keyout:).md)
- [CMMetadataCreateKeyFromIdentifierAsCFData(allocator:identifier:keyOut:)](coremedia/cmmetadatacreatekeyfromidentifierascfdata(allocator:identifier:keyout:).md)
