NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RecommendedAsConfigurableAttribute Class

Specifies that the property could be used as an application setting.

Object
   Attribute
      MemberAttribute
         RecommendedAsConfigurableAttribute

[Visual Basic]
Public Class RecommendedAsConfigurableAttribute
   Inherits MemberAttribute
[C#]
public class RecommendedAsConfigurableAttribute : MemberAttribute
[C++]
public __gc class RecommendedAsConfigurableAttribute : public
   MemberAttribute
[JScript]
public class RecommendedAsConfigurableAttribute extends
   MemberAttribute

Remarks

A property browser automatically includes properties that are marked with RecommendedAsConfigurable(true). A property that has no recommended setting or that is marked with RecommendedAsConfigurable(false) is not shown in a property browser and it is an unlikely candidate for being an application setting. The default is false.

You can bind a property that does not have a RecommendedAsConfigurableAttribute to a setting in Visual Studio by clicking the ellipsis button (...) under Settings in the Properties Window and selecting the appropriate property from the list.

Note   When you mark a property with RecommendedAsConfigurable(true), the value of this attribute is set to the constant member RecommendedAsConfigurableAttribute.Yes. For a property marked with RecommendedAsConfigurable(false), the value is RecommendedAsConfigurableAttribute.No. Therefore, when you want to check the value of this attribute in your code, you must specify the attribute as RecommendedAsConfigurableAttribute.Yes or RecommendedAsConfigurableAttribute.No.

For more information, see TBD and TBD.

Requirements

Namespace: System.ComponentModel

Assembly: System.dll

See Also

System.ComponentModel Namespace | MemberAttribute