# RadiusEnvironmentResource

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `13.5.3-preview.1.26425.3`
- Namespace: `Aspire.Hosting.Radius`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting.Radius/RadiusEnvironmentResource.cs)
- Inherits: `Resource`
- Implements: `IComputeEnvironmentResource`, `IResource`

Represents a Radius compute environment in the Aspire app model.

## Definition

```csharp
namespace Aspire.Hosting.Radius;

public sealed class RadiusEnvironmentResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IComputeEnvironmentResource,
      Aspire.Hosting.ApplicationModel.IResource
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Radius/RadiusEnvironmentResource`
- Public instance properties are exported as ATS capabilities.

## Constructors

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

## Properties

- [Namespace](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource/properties.md#namespace) : `string` `get; set` -- Gets or sets the Kubernetes namespace for resource deployment.
- [OwningComputeEnvironment](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource/properties.md#owningcomputeenvironment) : `IComputeEnvironmentResource?` `get; set` -- Gets or sets the parent compute environment this Radius environment is hosted by, when the Radius env is itself a child of a higher-level compute environment (e.g. an Azure AKS environment that wraps both Kubernetes and Radius). When set, resources that target the parent environment are also adopted by this Radius environment during the prepare step. Defaults to `null` (no parent).

## Methods

- [GetHostAddressExpression(EndpointReference)](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource/methods.md#gethostaddressexpression-endpointreference) : `ReferenceExpression` `experimental` -- Gets a `ApplicationModel.ReferenceExpression` representing the host address or host name for the specified `ApplicationModel.EndpointReference`.
