> ## 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 ComponentRunResultsMetadata

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

## ComponentRunResultsMetadata(RunStatus, Exception)

Constructor

```csharp theme={null}
public ComponentRunResultsMetadata(RunStatus status, Exception error)

```

### Parameters

`status` [RunStatus](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI.RunStatus.md)

The status of this run. The status must be valid for a result,
according to `Phoenix.ComponentAPI.ComponentRunResultsMetadata.IsValidStatus(Phoenix.ComponentAPI.RunStatus)`.

`error` [Exception](https://learn.microsoft.com/dotnet/api/system.exception)

If status is Error, this should be an exception describing the error. Otherwise
it should contain null.

### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

If `status` is not valid for a result.
