RecommendedAsConfigurableAttribute(Boolean) RecommendedAsConfigurableAttribute(Boolean) RecommendedAsConfigurableAttribute(Boolean) RecommendedAsConfigurableAttribute(Boolean) Constructor

정의

RecommendedAsConfigurableAttribute 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the RecommendedAsConfigurableAttribute class.

public:
 RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable);
public RecommendedAsConfigurableAttribute (bool recommendedAsConfigurable);
new System.ComponentModel.RecommendedAsConfigurableAttribute : bool -> System.ComponentModel.RecommendedAsConfigurableAttribute
Public Sub New (recommendedAsConfigurable As Boolean)

매개 변수

recommendedAsConfigurable
Boolean Boolean Boolean Boolean

이 특성이 바인딩되는 속성을 애플리케이션 설정으로 사용할 수 있으면 true이고, 그렇지 않으면 false입니다.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. 이 코드를 만듭니다 RecommendedAsConfigurableAttribute, 그 값을 설정 RecommendedAsConfigurableAttribute.Yes, 속성에 바인딩합니다.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.
      }
   }
[RecommendedAsConfigurable(true)]
public int MyProperty {
   get {
      // Insert code here.
      return 0;
   }
   set {
      // Insert code here.
   }
}
   
<RecommendedAsConfigurable(True)> _
Public Property MyProperty() As Integer
    Get
        ' Insert code here.
        Return 0
    End Get
    Set
        ' Insert code here.
    End Set
End Property

적용 대상

추가 정보