Marks a property as required (or not required) for AI-assisted report authoring.
The presence of this attribute with IsRequired set to true
indicates that an AI agent must provide a value for this property when constructing
the containing object.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class AIAssistantRequiredAttribute : Attribute
Inheritance: objectAttributeAIAssistantRequiredAttribute
Constructors
Initializes a new instance of the AIAssistantRequiredAttribute class
with IsRequired set to true.
public AIAssistantRequiredAttribute()
Initializes a new instance of the AIAssistantRequiredAttribute class with the specified value indicating whether the property is required.
public AIAssistantRequiredAttribute(bool isRequired)
true if the property is required; false to explicitly mark it as not required,
which can be used to override an inherited requirement in a descendant class.
Properties
IsRequired
bool
Gets a value indicating whether the decorated property is required for AI-assisted authoring.
public bool IsRequired { get; }
true if the property is required; otherwise, false.
The default value is true.