# StoreProperty

> Store a property value.

## Definition

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

## StoreProperty(PropertyDatabaseRecordKey, Object)

Store a property value.

```csharp
public void StoreProperty(PropertyDatabaseRecordKey recordKey, object value)
```

### Parameters

**** (\[PropertyDatabaseRecordKey]\(/engine/6000.6/script-reference/unityeditor/search/propertydatabaserecordkey)): Property key.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Property value.

## StoreProperty(PropertyDatabaseRecordKey, Object, string)

Store a property value.

```csharp
public void StoreProperty(PropertyDatabaseRecordKey recordKey, object value, string alias)
```

### Parameters

**** (\[PropertyDatabaseRecordKey]\(/engine/6000.6/script-reference/unityeditor/search/propertydatabaserecordkey)): Property key.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Property value.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Property alias if any.
