AttributeProviderAttribute コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > AttributeProviderAttribute コンストラクタの意味・解説 

AttributeProviderAttribute コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した型名使用して AttributeProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Dim typeName As String

Dim instance As New AttributeProviderAttribute(typeName)
public AttributeProviderAttribute (
    string typeName
)
public:
AttributeProviderAttribute (
    String^ typeName
)
public AttributeProviderAttribute (
    String typeName
)
public function AttributeProviderAttribute
 (
    typeName : String
)

パラメータ

typeName

指定する型の名前。

例外例外
例外種類条件

ArgumentNullException

typeNamenull 参照 (Visual Basic では Nothing) です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttributeProviderAttribute クラス
AttributeProviderAttribute メンバ
System.ComponentModel 名前空間
TypeDescriptor
その他の技術情報
記述子概要

AttributeProviderAttribute コンストラクタ (Type)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した型を使用して、AttributeProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Dim type As Type

Dim instance As New AttributeProviderAttribute(type)
public AttributeProviderAttribute (
    Type type
)
public:
AttributeProviderAttribute (
    Type^ type
)
public AttributeProviderAttribute (
    Type type
)
public function AttributeProviderAttribute
 (
    type : Type
)

パラメータ

type

指定する型。

例外例外
例外種類条件

ArgumentNullException

typenull 参照 (Visual Basic では Nothing) です。

使用例使用例

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
[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;
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttributeProviderAttribute クラス
AttributeProviderAttribute メンバ
System.ComponentModel 名前空間
TypeDescriptor
その他の技術情報
記述子概要

AttributeProviderAttribute コンストラクタ (String, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した型名プロパティ名を使用して、AttributeProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    typeName As String, _
    propertyName As String _
)
Dim typeName As String
Dim propertyName As String

Dim instance As New AttributeProviderAttribute(typeName,
 propertyName)
public AttributeProviderAttribute (
    string typeName,
    string propertyName
)
public:
AttributeProviderAttribute (
    String^ typeName, 
    String^ propertyName
)
public AttributeProviderAttribute (
    String typeName, 
    String propertyName
)
public function AttributeProviderAttribute
 (
    typeName : String, 
    propertyName : String
)

パラメータ

typeName

指定する型の名前。

propertyName

属性取得するプロパティの名前。

例外例外
例外種類条件

ArgumentNullException

typeNamenull 参照 (Visual Basic では Nothing) です。

ArgumentNullException

propertyNamenull 参照 (Visual Basic では Nothing) です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AttributeProviderAttribute クラス
AttributeProviderAttribute メンバ
System.ComponentModel 名前空間
TypeDescriptor
その他の技術情報
記述子概要

AttributeProviderAttribute コンストラクタ

AttributeProviderAttribute クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

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

関連項目

AttributeProviderAttribute クラス
AttributeProviderAttribute メンバ
System.ComponentModel 名前空間
TypeDescriptor

その他の技術情報

記述子概要



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「AttributeProviderAttribute コンストラクタ」の関連用語

AttributeProviderAttribute コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



AttributeProviderAttribute コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS