Class AiProvenanceWidgetProperties
Base class for Page Builder and Email Builder widget properties that support AI provenance marking.
public abstract class AiProvenanceWidgetProperties
- Inheritance
-
objectAiProvenanceWidgetProperties
- Extension Methods
Remarks
Inherit from the class in a widget properties class that implements IWidgetProperties or IEmailWidgetProperties.
Editors can then mark the widget's properties as AI generated or AI modified in the widget properties dialog.
Use GetAiProvenanceOrigin(string) to read the origin of a property when rendering the widget.
Constructors
AiProvenanceWidgetProperties()
protected AiProvenanceWidgetProperties()
Properties
AiProvenance
AI provenance of the widget's property values, keyed by property name.
public IReadOnlyDictionary<string, AiProvenance> AiProvenance { get; set; }
Property Value
- IReadOnlyDictionary<string, AiProvenance>
Methods
GetAiProvenanceOrigin(string)
Gets the AI provenance origin of the given widget property.
public AiProvenanceOrigin GetAiProvenanceOrigin(string propertyName)
Parameters
propertyNamestringName of the widget property, e.g.
nameof(MyWidgetProperties.Title).
Returns
- AiProvenanceOrigin
Origin of the property value, or None when the property is not marked.
Exceptions
- ArgumentException
Thrown when
propertyNameisnullor empty.