# RadiusEnvironmentResource Constructors

- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Type: [RadiusEnvironmentResource](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Radius compute environment in the Aspire app model.

<a id="constructor"></a>
<a id="constructor-string"></a>

## RadiusEnvironmentResource(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting.Radius/RadiusEnvironmentResource.cs#L32-L76)

Initializes a new instance of the [RadiusEnvironmentResource](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource.md) class.

```csharp
public sealed class RadiusEnvironmentResource
{
    public RadiusEnvironmentResource(
        string name)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the Radius environment resource.

## Remarks

Registers the publish/deploy pipeline steps as annotations on the resource so any caller that adds this resource to the application model gets a working environment. In Run mode the resource is normally not added to the model (see `AddRadiusEnvironment`) and the annotations are inert. Mirrors `KubernetesEnvironmentResource` / `DockerComposeEnvironmentResource`, which also keep their step factories on the resource itself rather than the extension method.
