# DataSourceContext(object, in PropertyPath)

> Creates a new instance of a DataSourceContext.

## Definition

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

## DataSourceContext(Object, PropertyPath)

```csharp
public DataSourceContext(object dataSource, in PropertyPath dataSourcePath)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The data source.**** (\[PropertyPath]\(/engine/6000.7/script-reference/unity/properties/propertypath)): The data source path.
