# SetGenericData(string, object)

> Sets data associated with the current drag-and-drop operation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## SetGenericData(string, Object)

```csharp
public void SetGenericData(string key, object data)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The key for this entry.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The data to store.
