> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Constructor VariableBasedBuilderView

Namespace: [Phoenix.ComponentPlugInSDK.Views](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Views)\
Assembly: Phoenix.ComponentPlugInSDK.dll

## VariableBasedBuilderView(VariableBasedBuilderModel, string, VariableTreeProperties, FileLoadProperties, ILogger, Func\<VariableBasedBuilderModel, Task>, Uri)

Constructor, creates a new instance of the view

```csharp theme={null}
public VariableBasedBuilderView(VariableBasedBuilderModel model, string componentName, VariableTreeProperties treeProperties, FileLoadProperties fileLoadProperties, ILogger logger, Func<VariableBasedBuilderModel, Task> saveAsync, Uri icon = null)

```

### Parameters

`model` [VariableBasedBuilderModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Models.VariableBasedBuilderModel)

The model representing the variableBasedBuilder.

`componentName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the component to use in the View.

`treeProperties` [VariableTreeProperties](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Models.VariableTreeProperties)

Properties that define the tree control behavior.

`fileLoadProperties` [FileLoadProperties](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Models.FileLoadProperties)

Definition of how file load should work

`logger` [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger)

The Logger to use

`saveAsync` [Func](https://learn.microsoft.com/dotnet/api/system.func-2)\<[VariableBasedBuilderModel](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.ComponentPlugInSDK.Models.VariableBasedBuilderModel), [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task)>

An Async Function to invoke to perform a save operaion.

`icon` [Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The optional URI of the icon to use in the view. If null or not specified, the default Windows icon will be used.
