Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
McpEMailParameterAttribute.cs
1using System;
3
5{
9 [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue |
10 AttributeTargets.Property | AttributeTargets.Field,
11 Inherited = true, AllowMultiple = false)]
13 {
20 : base(Title, Description)
21 {
22 }
23
31 int MaxLength)
33 {
34 }
35
44 int MinLength, int MaxLength)
46 {
47 }
48
53 public override void Annotate(Dictionary<string, object?> Schema)
54 {
55 base.Annotate(Schema);
56
57 Schema["format"] = "email";
58 }
59
64 public override void GetHtmlInputAttributes(Dictionary<string, string> Attributes)
65 {
66 base.GetHtmlInputAttributes(Attributes);
67 Attributes["type"] = "email";
68 }
69 }
70}
McpEMailParameterAttribute(string? Title, string? Description, int MinLength, int MaxLength)
Provides meta-data about a string-valued parameter.
McpEMailParameterAttribute(string? Title, string? Description)
Provides meta-data about a e-mail-valued parameter.
override void GetHtmlInputAttributes(Dictionary< string, string > Attributes)
Gets HTML input attributes for the parameter, if any.
McpEMailParameterAttribute(string? Title, string? Description, int MaxLength)
Provides meta-data about a string-valued parameter.
override void Annotate(Dictionary< string, object?> Schema)
Annotates a schema object with information in the attribute.