Class ConfigurationAttribute
Specifies the property is a configuration property.
If the property represents a collection, the type of the property must implement the System.Collections.IList interface.
If the property is not a value type, the type of the property must be decorated with ConfigurationClassAttribute attribute.
Inheritance
ConfigurationAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Attribute.Match(System.Object)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Attribute.TypeId
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class ConfigurationAttribute : Attribute, _Attribute
Constructors
ConfigurationAttribute()
Initializes a new instance of the ConfigurationAttribute class.
Use this constructor only for non value types (e.g. class or System.Collections.IList).
Declaration
public ConfigurationAttribute()
ConfigurationAttribute(Object)
Initializes a new instance of the ConfigurationAttribute class.
Use this constructor only for value types (e.g. bool, int, double, string, ...).
Declaration
public ConfigurationAttribute(object defaultValue)
Parameters
Type |
Name |
Description |
Object |
defaultValue |
Default value if no configuration value could be loaded.
|
Properties
DefaultValue
Gets or sets the default value of the property.
Declaration
public object DefaultValue { get; set; }
Property Value
Description
Gets or sets the description of the property.
Declaration
public string Description { get; set; }
Property Value
DoNotCreateNewInstance
Gets or sets a value indicating whether a new instance should not created.
Declaration
public bool DoNotCreateNewInstance { get; set; }
Property Value
Unit
Gets or sets the physical unit of the property.
Declaration
public string Unit { get; set; }
Property Value
Implements
System.Runtime.InteropServices._Attribute