# CreateDocumentKey(string)

> Creates a document key from a document identifier.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static ulong CreateDocumentKey(string documentId)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A document identifier.

### Returns

| Type                                                          | Description       |
| ------------------------------------------------------------- | ----------------- |
| [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) | The document key. |

### Remarks

Additional Resources: [PropertyDatabase.CreateRecordKey](/engine/6000.6/script-reference/unityeditor/search/propertydatabase/createrecordkey.md), [PropertyDatabase.Store](/engine/6000.6/script-reference/unityeditor/search/propertydatabase/store.md), [PropertyDatabase.TryLoad](/engine/6000.6/script-reference/unityeditor/search/propertydatabase/tryload.md) and [PropertyDatabase.Invalidate](/engine/6000.6/script-reference/unityeditor/search/propertydatabase/invalidate.md).
