    

 ## On this page

  

 

 # Method CreateCloneFrom

 Last update: 19.06.2026 

Namespace: [Phoenix.ComponentAPI](Phoenix.ComponentAPI.md)  
Assembly: Phoenix.ComponentAPI.dll

## CreateCloneFrom(IEnumerable&lt;KeyValuePair&lt;string, VariableState&gt;&gt;)

Creates a new ComponentRunRequest by making a clone of the given data.

```csharp
public static ComponentRunRequest CreateCloneFrom(IEnumerable<KeyValuePair<string, VariableState>> source)


```

### Parameters

`source` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string), VariableState&gt;&gt;

The input values to use for the run request.

### Returns

[ComponentRunRequest](Phoenix.ComponentAPI.ComponentRunRequest.md)

A newly created ComponentRunRequest

### Remarks

You should always use the returned value in a using block, or otherwise ensure it will be disposed.

## CreateCloneFrom(IEnumerable&lt;IRuntimeVariable&gt;, IEnumerable&lt;KeyValuePair&lt;string, VariableState&gt;&gt;)

Creates a new ComponentRunRequest by making a clone of the given data, filtered by a set of inputs.

```csharp
public static ComponentRunRequest CreateCloneFrom(IEnumerable<IRuntimeVariable> inputList, IEnumerable<KeyValuePair<string, VariableState>> source)


```

### Parameters

`inputList` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[IRuntimeVariable](Phoenix.PaczAPI.IRuntimeVariable.md)&gt;

Which variables to include from `source`

`source` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string), VariableState&gt;&gt;

The input values to use for the run request.

### Returns

[ComponentRunRequest](Phoenix.ComponentAPI.ComponentRunRequest.md)

A newly created ComponentRunRequest

### Remarks

You should always use the returned value in a using block, or otherwise ensure it will be disposed.

## CreateCloneFrom(IEnumerable, IEnumerable&lt;KeyValuePair&lt;string, VariableState&gt;&gt;)

Creates a new ComponentRunRequest by making a clone of the given data, filtered by a set of inputs.

```csharp
public static ComponentRunRequest CreateCloneFrom(IEnumerable<string> inputList, IEnumerable<KeyValuePair<string, VariableState>> source)


```

### Parameters

`inputList` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

Which variables to include from `source`

`source` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string), VariableState&gt;&gt;

The input values to use for the run request.

### Returns

[ComponentRunRequest](Phoenix.ComponentAPI.ComponentRunRequest.md)

A newly created ComponentRunRequest

### Remarks

You should always use the returned value in a using block, or otherwise ensure it will be disposed.