Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
McpPasswordParameterAttribute.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 throw new ServiceUnavailableException("Passwords not permitted in schema. User input via URL is required.");
56 }
57
62 public override void GetHtmlInputAttributes(Dictionary<string, string> Attributes)
63 {
64 base.GetHtmlInputAttributes(Attributes);
65 Attributes["type"] = "password";
66 }
67 }
68}
override void Annotate(Dictionary< string, object?> Schema)
Annotates a schema object with information in the attribute.
McpPasswordParameterAttribute(string? Title, string? Description)
Provides meta-data about a masked string-valued parameter.
McpPasswordParameterAttribute(string? Title, string? Description, int MaxLength)
Provides meta-data about a masked string-valued parameter.
McpPasswordParameterAttribute(string? Title, string? Description, int MinLength, int MaxLength)
Provides meta-data about a masked string-valued parameter.
override void GetHtmlInputAttributes(Dictionary< string, string > Attributes)
Gets HTML input attributes for the parameter, if any.
The server is currently unable to handle the request due to a temporary overloading or maintenance of...