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>>, ComponentRunResultsMetadata)

Creates a new instance of a ComponentRunResults.

public static ComponentRunResults MoveStateFrom(IEnumerable<KeyValuePair<string, VariableState>> resultValues, ComponentRunResultsMetadata resultMetadata)

Parameters

resultValues IEnumerable<KeyValuePair<string, VariableState>>

The output variable values to take ownership of. The source array should not be used after calling this function.

resultMetadata ComponentRunResultsMetadata

Metadata about each run

Returns

ComponentRunResults

A new ComponentRunResults

Remarks

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

MoveStateFrom(VariableValueScope, ComponentRunResultsMetadata)

Creates a new instance of a ComponentRunResults by moving the data.

public static ComponentRunResults MoveStateFrom(VariableValueScope resultValues, ComponentRunResultsMetadata resultMetadata)

Parameters

resultValues VariableValueScope

The output variable values to take ownership of. The source array should not be used after calling this function.

resultMetadata ComponentRunResultsMetadata

Metadata about each run

Returns

ComponentRunResults

A new ComponentRunResults

Remarks

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

Connect with Ansys