Skip to content
Docs Try Aspire
Docs Try

AspireValueAttribute Constructors

Class Constructors 1 member
Marks an immutable static field or property as an ATS-exported value.
Marks an immutable static field or property as an ATS-exported value.
public sealed class AspireValueAttribute
{
public AspireValueAttribute(
string catalogName)
{
// ...
}
}
catalogName string The root name of the generated value catalog.

Exported values are snapped during ATS scanning and emitted into generated guest SDKs as predefined values. They are intended for immutable DTO, enum, and primitive values that should be available without re-declaring them in each guest language.

The catalogName becomes the root name of the generated value catalog in guest SDKs. Nested static types are emitted as nested namespaces or classes under that root.

Exported values should be side-effect free and should not return handles or other runtime-bound ATS types.