RecommendedAsConfigurableAttribute.Yes 字段

定义

指定属性能用作应用程序设置。Specifies that a property can be used as an application setting. static 字段是只读的。This static field is read-only.

public: static initonly System::ComponentModel::RecommendedAsConfigurableAttribute ^ Yes;
public static readonly System.ComponentModel.RecommendedAsConfigurableAttribute Yes;
 staticval mutable Yes : System.ComponentModel.RecommendedAsConfigurableAttribute
Public Shared ReadOnly Yes As RecommendedAsConfigurableAttribute 

字段值

注解

RecommendedAsConfigurableAttribute 设置为 true的属性标记时,此属性的值将设置为常量成员 YesWhen you mark a property with RecommendedAsConfigurableAttribute set to true, the value of this attribute is set to the constant member Yes.

因此,当您要检查您的代码中是否将该属性设置为此值时,必须将该属性指定为 RecommendedAsConfigurableAttribute.YesTherefore, when you want to check whether the attribute is set to this value in your code, you must specify the attribute as RecommendedAsConfigurableAttribute.Yes.

适用于

另请参阅