March 2003
Intermediate to advanced
896 pages
32h 35m
English
RecommendedAsConfigurableAttribute
This attribute is added to a class to mark it as an application setting. A property decorated with this attribute will appear in the Configurations section of the designer and will allow you to map its value to a particular key in a configuration file.
The RecommendedAsConfigurable property determines
the state of the attribute, but you should compare against the static
Yes and No values for equality.
public class RecommendedAsConfigurableAttribute : Attribute { // Public Constructors public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable); // Public Static Fields public static readonly RecommendedAsConfigurableAttribute Default; // =System.ComponentModel.RecommendedAsConfigurableAttribute public static readonly RecommendedAsConfigurableAttribute No; // =System.ComponentModel.RecommendedAsConfigurableAttribute public static readonly RecommendedAsConfigurableAttribute Yes; // =System.ComponentModel.RecommendedAsConfigurableAttribute // Public Instance Properties public bool RecommendedAsConfigurable{get; } // Public Instance Methods public override bool Equals(object obj); // overrides Attribute public override int GetHashCode(); // overrides Attribute public override bool IsDefaultAttribute(); // overrides Attribute }
System.Object
→ System.Attribute → RecommendedAsConfigurableAttribute
Property
Read now
Unlock full access