AttributeProviderAttribute 생성자

정의

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

오버로드

AttributeProviderAttribute(String)

지정된 형식 이름을 사용하여 AttributeProviderAttribute 클래스의 새 인스턴스를 초기화합니다.

AttributeProviderAttribute(Type)

지정된 형식을 사용하여 AttributeProviderAttribute 클래스의 새 인스턴스를 초기화합니다.

AttributeProviderAttribute(String, String)

지정된 형식 이름과 속성 이름을 사용하여 AttributeProviderAttribute 클래스의 새 인스턴스를 초기화합니다.

AttributeProviderAttribute(String)

Source:
AttributeProviderAttribute.cs
Source:
AttributeProviderAttribute.cs
Source:
AttributeProviderAttribute.cs

지정된 형식 이름을 사용하여 AttributeProviderAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 AttributeProviderAttribute(System::String ^ typeName);
public AttributeProviderAttribute (string typeName);
new System.ComponentModel.AttributeProviderAttribute : string -> System.ComponentModel.AttributeProviderAttribute
Public Sub New (typeName As String)

매개 변수

typeName
String

지정할 형식의 이름입니다.

예외

typeName이(가) null인 경우

추가 정보

적용 대상

AttributeProviderAttribute(Type)

Source:
AttributeProviderAttribute.cs
Source:
AttributeProviderAttribute.cs
Source:
AttributeProviderAttribute.cs

지정된 형식을 사용하여 AttributeProviderAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 AttributeProviderAttribute(Type ^ type);
public AttributeProviderAttribute (Type type);
new System.ComponentModel.AttributeProviderAttribute : Type -> System.ComponentModel.AttributeProviderAttribute
Public Sub New (type As Type)

매개 변수

type
Type

지정할 형식입니다.

예외

type이(가) null인 경우

예제

다음 코드 예제에서는 사용 하 여 AttributeProviderAttribute 특정 형식의 DataSourceIListSource속성을 표시 하는 방법을 보여 줍니다. 전체 코드 목록은 참조 하세요 방법: Windows Forms 컨트롤에서 특성 적용합니다.

[Category("Data")]
[Description("Indicates the source of data for the control.")]
[RefreshProperties(RefreshProperties.Repaint)]
[AttributeProvider(typeof(IListSource))]
public object DataSource
{
    get
    {
        return this.dataGridView1.DataSource;
    }

    set
    {
        this.dataGridView1.DataSource = value;
    }
}
<Category("Data"), _
Description("Indicates the source of data for the control."), _
RefreshProperties(RefreshProperties.Repaint), _
AttributeProvider(GetType(IListSource))> _
Public Property DataSource() As Object
    Get
        Return Me.dataGridView1.DataSource
    End Get

    Set(ByVal value As Object)
        Me.dataGridView1.DataSource = value
    End Set
End Property

추가 정보

적용 대상

AttributeProviderAttribute(String, String)

Source:
AttributeProviderAttribute.cs
Source:
AttributeProviderAttribute.cs
Source:
AttributeProviderAttribute.cs

지정된 형식 이름과 속성 이름을 사용하여 AttributeProviderAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 AttributeProviderAttribute(System::String ^ typeName, System::String ^ propertyName);
public AttributeProviderAttribute (string typeName, string propertyName);
new System.ComponentModel.AttributeProviderAttribute : string * string -> System.ComponentModel.AttributeProviderAttribute
Public Sub New (typeName As String, propertyName As String)

매개 변수

typeName
String

지정할 형식의 이름입니다.

propertyName
String

특성을 검색할 속성의 이름입니다.

예외

propertyNamenull입니다.

추가 정보

적용 대상