New to Telerik ReportingStart a free 30-day trial

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:

C#
[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.

C#
public AIAssistantRequiredAttribute()

Initializes a new instance of the AIAssistantRequiredAttribute class with the specified value indicating whether the property is required.

C#
public AIAssistantRequiredAttribute(bool isRequired)
Parameters:isRequiredbool

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

Gets a value indicating whether the decorated property is required for AI-assisted authoring.

C#
public bool IsRequired { get; }
Property Value:

true if the property is required; otherwise, false. The default value is true.