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

Excludes a type or property from the AI-assistant JSON schema.

No type arguments:
[AIAssistantExclude] - the attributed type or property is omitted from the generated JSON Schema.

With type arguments:
[AIAssistantExclude("Graph", "Map")] - the property is omitted only when the schema is built for one of the named types.

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

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

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

Inheritance: objectAttributeAIAssistantExcludeAttribute

Constructors

Initializes a new instance of AIAssistantExcludeAttribute.

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

Optional comma-separated type names to which the exclusion is scoped. When omitted or empty the property is excluded for all types. Example: "Graph, Map".

Properties

Types

string[]

Gets the type names for which this property should be excluded. An empty array means "exclude for all types".

C#
public string[] Types { get; }