Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
MentorFormOptions class
The MentorFormOptions class of Novior.MentorAgent.Abstractions.Interfaces: How MentorFormExtensions.RegisterForm reads a form. A field is named by its…
In questa pagina
How MentorFormExtensions.RegisterForm reads a form. A field is named by its property, as written in the model (nameof(Order.CustomerName)) or as the model sees it (customerName); a name that is no field of the form throws when the form is registered.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Interfaces. Package: Novior.MentorAgent.Abstractions.
public sealed class MentorFormOptions
dotnet add package Novior.MentorAgent.AbstractionsConstructors
Section titled “Constructors”public MentorFormOptions()
Methods
Section titled “Methods”Exclude
Section titled “Exclude”public MentorFormOptions Exclude(params string[] fields)
Leaves these fields out: the model is not told of them and cannot fill them.
IncludeSensitive
Section titled “IncludeSensitive”public MentorFormOptions IncludeSensitive(params string[] fields)
Lets in these sensitive fields, which a form leaves out unless they are named here: the model can then fill them, and the page's field is written even when it is a password field. What the model writes there it has seen, and so has its provider: name only what the user may say to the assistant.
Selector
Section titled “Selector”public MentorFormOptions Selector(string field, string selector)
The CSS selector of a field in the page, in place of its data-mentor-id.
