New to Telerik Reporting? Start a free 30-day trial

Controls which types include a property in the AI-assistant JSON schema.

No type arguments (global inclusion):
[AIAssistantInclude] ΓÇö the property is included for every type that declares or inherits it, even when the DSV.Hidden filter would otherwise exclude it. Use this for scalar authoring properties such as Left, Top, Width, and Height that are Hidden only because the WinForms designer prefers the compound Location/Size properties.

With type arguments (whitelist):
[AIAssistantInclude("Panel, Table")] ΓÇö the property is included only for the named types. For every other inheriting type the property is explicitly excluded, regardless of any other filtering rules. This is the inverse of AIAssistantExcludeAttribute with type arguments and is useful when a property declared on a broad base class is meaningful only for a specific subset of its subclasses (e.g. Items on ReportItemBase is relevant for container types such as Panel but not for leaf types such as Graph).

Only one of AIAssistantIncludeAttribute or AIAssistantExcludeAttribute should be applied to a given property.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class AIAssistantIncludeAttribute : Attribute

Inheritance: objectAttributeAIAssistantIncludeAttribute

Constructors

Initializes a new instance of AIAssistantIncludeAttribute.

C#
public AIAssistantIncludeAttribute(string types = "")
Parameters:typesstring

Optional comma-separated type names that form a whitelist. When omitted or empty the property is included for all types. When specified, the property is included ONLY for those types and explicitly excluded for all others. Example: "Panel, Table, List".

Properties

Types

string[]

Gets the type names for which this property should be force-included. An empty array means "include for all types".

C#
public string[] Types { get; }