WebBrowsableAttribute 클래스

정의

웹 파트 컨트롤의 지정된 속성이 PropertyGridEditorPart 개체에 표시되는지 여부를 나타냅니다.

public ref class WebBrowsableAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class WebBrowsableAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type WebBrowsableAttribute = class
    inherit Attribute
Public NotInheritable Class WebBrowsableAttribute
Inherits Attribute
상속
WebBrowsableAttribute
특성

예제

다음 코드 예제에서는 특성을 사용 하 여 WebBrowsableAttribute 컨트롤에 표시할 수 있는 웹 파트 컨트롤의 속성을 표시 PropertyGridEditorPart 하는 방법을 보여 줍니다. 이 예제는 클래스 개요에 있는 더 큰 예제의 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

설명

컨트롤은 PropertyGridEditorPart 사용자가 영역에 배치 WebPartZoneBase 된 서버 컨트롤 및 사용자 지정 속성을 WebPart 편집할 수 있는 일반 UI(사용자 인터페이스)를 제공합니다. 소스 코드에 특성(클래스의 특성)으로 WebBrowsable 표시된 속성에 대해 편집 UI가 WebBrowsableAttribute 제공됩니다. 속성이 이 특성 PropertyGridEditorPart 으로 표시되면 컨트롤은 속성의 형식에 따라 편집 UI를 만들고 필요한 경우 개체를 사용하여 PropertyDescriptor 각 편집 컨트롤의 값을 속성의 형식으로 변환합니다.

생성자

Name Description
WebBrowsableAttribute()

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

WebBrowsableAttribute(Boolean)

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

필드

Name Description
Default

속성이 WebBrowsableAttribute 기본값으로 Browsable 설정된 클래스의 인스턴스를 false나타냅니다.

No

속성이 .로 설정된 클래스의 WebBrowsableAttribute 인스턴스를 Browsablefalse나타냅니다.

Yes

속성이 .로 설정된 클래스의 WebBrowsableAttribute 인스턴스를 Browsabletrue나타냅니다.

속성

Name Description
Browsable

컨트롤이 웹 파트 컨트롤의 특정 속성을 표시해야 하는지 여부를 PropertyGridEditorPart 나타내는 값을 가져옵니다.

TypeId

파생 클래스에서 구현되는 경우 이 Attribute대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)

메서드

Name Description
Equals(Object)

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

GetHashCode()

표시 이름 값에 대한 해시 코드를 반환합니다.

GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

현재 인스턴스가 기본값으로 설정되어 있는지 여부를 확인합니다.

Match(Object)

파생 클래스에서 재정의되는 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

(다음에서 상속됨 Attribute)

적용 대상