WebBrowsableAttribute 생성자

정의

WebBrowsableAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
WebBrowsableAttribute()

속성이 .로 설정된 클래스의 WebBrowsableAttribute 새 인스턴스를 Browsable 초기화합니다 true.

WebBrowsableAttribute(Boolean)

속성에 대해 지정된 값을 사용하여 클래스의 WebBrowsableAttribute 새 인스턴스를 Browsable 초기화합니다.

WebBrowsableAttribute()

속성이 .로 설정된 클래스의 WebBrowsableAttribute 새 인스턴스를 Browsable 초기화합니다 true.

public:
 WebBrowsableAttribute();
public WebBrowsableAttribute();
Public Sub New ()

예제

다음 코드 예제에서는 특성을 사용 하 여 WebBrowsableAttribute 컨트롤에 표시할 수 있는 웹 파트 컨트롤의 속성을 표시 PropertyGridEditorPart 하는 방법을 보여 줍니다. 속성은 생성자를 통해 WebBrowsableAttribute 검색 가능으로 설정됩니다. 이 예제는 클래스 개요에 있는 더 큰 예제의 PropertyGridEditorPart 일부입니다.

[Personalizable(), WebBrowsable(), WebDisplayName("Job Type"), 
  WebDescription("Select the category that corresponds to your job.")]
public JobTypeName UserJobType
{
  get
  {
    object o = ViewState["UserJobType"];
    if (o != null)
      return (JobTypeName)o;
    else
      return _userJobType;
  }

  set { _userJobType = (JobTypeName)value; }
}
<Personalizable(), WebBrowsable(), WebDisplayName("Job Type"), _
  WebDescription("Select the category that corresponds to your job.")> _
Public Property UserJobType() As JobTypeName
  Get
    Dim o As Object = ViewState("UserJobType")
    If Not (o Is Nothing) Then
      Return CType(o, JobTypeName)
    Else
      Return _userJobType
    End If
  End Get
  Set(ByVal value As JobTypeName)
    _userJobType = CType(value, JobTypeName)
  End Set
End Property

설명

WebBrowsableAttribute 생성자는 WebBrowsable 특성이 C#의 특성 선언 [WebBrowsable()] 또는 Visual Basic <WebBrowsable()> 통해 적용될 때 사용됩니다.

적용 대상

WebBrowsableAttribute(Boolean)

속성에 대해 지정된 값을 사용하여 클래스의 WebBrowsableAttribute 새 인스턴스를 Browsable 초기화합니다.

public:
 WebBrowsableAttribute(bool browsable);
public WebBrowsableAttribute(bool browsable);
new System.Web.UI.WebControls.WebParts.WebBrowsableAttribute : bool -> System.Web.UI.WebControls.WebParts.WebBrowsableAttribute
Public Sub New (browsable As Boolean)

매개 변수

browsable
Boolean

속성을 에 표시할지 여부를 나타내는 부울 값입니다 PropertyGridEditorPart.

설명

WebBrowsableAttribute 생성자는 특성이 부울 값이 있는 특성 선언을 통해 적용될 때 WebBrowsable 사용됩니다. 속성이 PropertyGridEditorPart 컨트롤에 표시되지 않도록 하려면 C#의 특성 [WebBrowsable(false)] 또는 Visual Basic <WebBrowsable(false)> 속성을 표시할 수 있습니다.

적용 대상