AttributeProviderAttribute コンストラクタ (String)
アセンブリ: System (system.dll 内)



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AttributeProviderAttribute コンストラクタ (Type)
アセンブリ: System (system.dll 内)



AttributeProviderAttribute を使用して、IListSource の特定の型で DataSource プロパティをマークするコード例を次に示します。コード全体については、「方法 : Windows フォーム コントロールに属性を適用する」を参照してください。
<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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AttributeProviderAttribute コンストラクタ (String, String)
アセンブリ: System (system.dll 内)

Dim typeName As String Dim propertyName As String Dim instance As New AttributeProviderAttribute(typeName, propertyName)

例外の種類 | 条件 |
---|---|
ArgumentNullException | typeName が null 参照 (Visual Basic では Nothing) です。 |
ArgumentNullException | propertyName が null 参照 (Visual Basic では Nothing) です。 |

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AttributeProviderAttribute コンストラクタ

名前 | 説明 |
---|---|
AttributeProviderAttribute (String) | 指定した型名を使用して AttributeProviderAttribute クラスの新しいインスタンスを初期化します。 |
AttributeProviderAttribute (Type) | 指定した型を使用して、AttributeProviderAttribute クラスの新しいインスタンスを初期化します。 |
AttributeProviderAttribute (String, String) | 指定した型名とプロパティ名を使用して、AttributeProviderAttribute クラスの新しいインスタンスを初期化します。 |

- AttributeProviderAttribute コンストラクタのページへのリンク