RecommendedAsConfigurableAttribute Constructor (Boolean)


Initializes a new instance of the RecommendedAsConfigurableAttribute class.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public RecommendedAsConfigurableAttribute(
	bool recommendedAsConfigurable


Type: System.Boolean

true if the property this attribute is bound to can be used as an application setting; otherwise, false.

The following example marks a property as usable as an application setting. This code creates a new RecommendedAsConfigurableAttribute, sets its value to RecommendedAsConfigurableAttribute.Yes, and binds it to the property.

public int MyProperty {
   get {
      // Insert code here.
      return 0;
   set {
      // Insert code here.

.NET Framework
Available since 1.1
Return to top