Skip to content
DocsTry Aspire
DocsTry

AspireDtoAttribute Properties

ClassProperties1 member
Marks a class as an ATS (Aspire Type System) Data Transfer Object. DTOs are serializable types used to pass structured data to capabilities.
DtoTypeIdSection titled DtoTypeIdnullablestring?
Gets or sets an optional type identifier for this DTO. If not specified, the DTO will be serialized as a plain JSON object.
public string? DtoTypeId { get; set; }
When set, the serialized JSON will include a $type field with this value.