Skip to main content

Component Plug-In SDK 2026 R1

Method MoveStateFrom

Last update: 19.06.2026

Namespace: Phoenix.ComponentAPI
Assembly: Phoenix.ComponentAPI.dll

MoveStateFrom(IEnumerable<KeyValuePair<string, VariableState>>)

Creates a new ComponentRunRequest by taking ownership of all the variable values passed in.

public static ComponentRunRequest MoveStateFrom(IEnumerable<KeyValuePair<string, VariableState>> source)

Parameters

source IEnumerable<KeyValuePair<string, VariableState>>

The input values to use for the run request.

Returns

ComponentRunRequest

A newly created ComponentRunRequest

Remarks

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

MoveStateFrom(VariableValueScope)

Creates a new ComponentRunRequest by taking all variables from the given scope.

public static ComponentRunRequest MoveStateFrom(VariableValueScope source)

Parameters

source VariableValueScope

The source to move inputs from. This object will be empty after calling this function.

Returns

ComponentRunRequest

A newly created ComponentRunRequest

Remarks

After calling this function, source will be empty. You should always use the returned value in a using block, or otherwise ensure it will be disposed.

Connect with Ansys