# CreateDocumentKey(string)

> Creates a document key from a document identifier.

## Definition

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

```csharp
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: [IPropertyDatabaseView.CreateRecordKey](/engine/6000.7/script-reference/unityeditor/search/ipropertydatabaseview/createrecordkey.md), [IPropertyDatabaseView.Store](/engine/6000.7/script-reference/unityeditor/search/ipropertydatabaseview/store.md), [IPropertyDatabaseView.TryLoad](/engine/6000.7/script-reference/unityeditor/search/ipropertydatabaseview/tryload.md) and [IPropertyDatabaseView.Invalidate](/engine/6000.7/script-reference/unityeditor/search/ipropertydatabaseview/invalidate.md).
