Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PageAttribute.cs
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
9 public class PageAttribute : Attribute
10 {
14 public const int DefaultPriority = 100;
15
16 private readonly int stringId;
17 private readonly string label;
18 private readonly int priority;
19
24 public PageAttribute(string Label)
25 : this(0, Label, DefaultPriority)
26 {
27 }
28
34 public PageAttribute(int StringId, string Label)
36 {
37 }
38
44 public PageAttribute(string Label, int Priority)
45 : this(0, Label, Priority)
46 {
47 }
48
55 public PageAttribute(int StringId, string Label, int Priority)
56 {
57 this.stringId = StringId;
58 this.label = Label;
59 this.priority = Priority;
60 }
61
65 public int StringId => this.stringId;
66
70 public string Label => this.label;
71
75 public int Priority => this.priority;
76 }
77}
Places the parameter on a localizable page.
int StringId
String ID in the namespace of the current class, in the default language defined for the class.
PageAttribute(int StringId, string Label, int Priority)
Places the parameter on a localizable page.
string Label
Default label string, in the default language defined for the class.
const int DefaultPriority
Default priority of pages (100).
int Priority
Priority of page (default=100).
PageAttribute(int StringId, string Label)
Places the parameter on a localizable page.
PageAttribute(string Label)
Places the parameter on a page.
PageAttribute(string Label, int Priority)
Places the parameter on a page.