RecommendedAsConfigurableAttribute Constructor (Boolean)

 

Initializes a new instance of the RecommendedAsConfigurableAttribute class.

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

public:
RecommendedAsConfigurableAttribute(
	bool recommendedAsConfigurable
)

Parameters

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:
   [RecommendedAsConfigurable(true)]
   property int MyProperty 
   {
      int get()
      {
         // Insert code here.
         return 0;
      }
      void set( int value )
      {

         // Insert code here.
      }
   }

.NET Framework
Available since 1.1
Return to top
Show: