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