Name
RecommendedAsConfigurableAttribute
Synopsis
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 }
Hierarchy
System.Object
→ System.Attribute → RecommendedAsConfigurableAttribute
Valid On
Property
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.