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

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

ConnectionProviderAttribute コンストラクタ (String, Type)

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

プロバイダ コネクション ポイント使用する表示名特定のコネクション ポイント オブジェクトの型を指定して、ConnectionProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.Web.UI.WebControls.WebParts
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub New ( _
    displayName As String, _
    connectionPointType As Type _
)
Dim displayName As String
Dim connectionPointType As Type

Dim instance As New ConnectionProviderAttribute(displayName,
 connectionPointType)
public ConnectionProviderAttribute (
    string displayName,
    Type connectionPointType
)
public:
ConnectionProviderAttribute (
    String^ displayName, 
    Type^ connectionPointType
)
public ConnectionProviderAttribute (
    String displayName, 
    Type connectionPointType
)
public function ConnectionProviderAttribute
 (
    displayName : String, 
    connectionPointType : Type
)

パラメータ

displayName

ユーザー インターフェイス (UI) に表示するプロバイダ コネクション ポイント表示名を含む文字列

connectionPointType

ConnectionPoint から派生し特定のコールバック メソッド使用するコネクション ポイント オブジェクトの型として指定する Type

例外例外
例外種類条件

ArgumentNullException

displayName または connectionPointTypenull 参照 (Visual Basic では Nothing) です。

ArgumentException

connectionPointType が有効ではありません。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConnectionProviderAttribute クラス
ConnectionProviderAttribute メンバ
System.Web.UI.WebControls.WebParts 名前空間
ConnectionPointType
DisplayName

ConnectionProviderAttribute コンストラクタ (String)

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

プロバイダ コネクション ポイント表示名指定して、ConnectionProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.Web.UI.WebControls.WebParts
アセンブリ: System.Web (system.web.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

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

解説解説
使用例使用例

ConnectionProviderAttribute クラス使用するコード例次に示します。この例は、プロバイダ コントロールコールバック メソッドConnectionProviderAttribute メタデータ要素宣言する方法示してます。displayName パラメータ値だけが指定された、最も簡単なコンストラクタオーバーロード使用されています。この例の実行必要なコード全体については、ConnectionProviderAttribute クラス概要参照してください

<ConnectionProvider("Row")> _
Public Function GetConnectionInterface() As
 IWebPartRow
    Return New RowProviderWebPart()

End Function 'GetConnectionInterface
[ConnectionProvider("Row")]
public IWebPartRow GetConnectionInterface()
{
    return new RowProviderWebPart();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConnectionProviderAttribute クラス
ConnectionProviderAttribute メンバ
System.Web.UI.WebControls.WebParts 名前空間
DisplayName

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

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

プロバイダ コネクション ポイント表示名ID指定して、ConnectionProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.Web.UI.WebControls.WebParts
アセンブリ: System.Web (system.web.dll 内)
構文構文

例外例外
例外種類条件

ArgumentNullException

displayName または idnull 参照 (Visual Basic では Nothing) です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConnectionProviderAttribute クラス
ConnectionProviderAttribute メンバ
System.Web.UI.WebControls.WebParts 名前空間
DisplayName
ID

ConnectionProviderAttribute コンストラクタ (String, String, Type)

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

プロバイダ コネクション ポイント使用する表示名ID、および特定のコネクション ポイント オブジェクトの型を指定して、ConnectionProviderAttribute クラス新しインスタンス初期化します。

名前空間: System.Web.UI.WebControls.WebParts
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub New ( _
    displayName As String, _
    id As String, _
    connectionPointType As Type _
)
Dim displayName As String
Dim id As String
Dim connectionPointType As Type

Dim instance As New ConnectionProviderAttribute(displayName,
 id, connectionPointType)
public ConnectionProviderAttribute (
    string displayName,
    string id,
    Type connectionPointType
)
public:
ConnectionProviderAttribute (
    String^ displayName, 
    String^ id, 
    Type^ connectionPointType
)
public ConnectionProviderAttribute (
    String displayName, 
    String id, 
    Type connectionPointType
)
public function ConnectionProviderAttribute
 (
    displayName : String, 
    id : String, 
    connectionPointType : Type
)

パラメータ

displayName

ユーザー インターフェイス (UI) に表示するプロバイダ コネクション ポイント表示名を含む文字列

id

プロバイダ コネクション ポイント割り当てられ一意文字列値である ID

connectionPointType

ProviderConnectionPoint から派生し特定のコールバック メソッド使用するコネクション ポイント オブジェクトの型として指定する Type

例外例外
例外種類条件

ArgumentNullException

displayNameid、または connectionPointTypenull 参照 (Visual Basic では Nothing) です。

ArgumentException

connectionPointType が有効ではありません。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConnectionProviderAttribute クラス
ConnectionProviderAttribute メンバ
System.Web.UI.WebControls.WebParts 名前空間
ConnectionPointType
DisplayName
ID

ConnectionProviderAttribute コンストラクタ

コネクション ポイント表示名使用する値を指定し必要に応じてコネクション ポイントID またはコネクション ポイント種類 (あるいはその両方) に使用する値を指定して、ConnectionProviderAttribute クラス新しインスタンス初期化します。

プロバイダ コントロールは、ConnectionProviderAttribute メタデータ要素マークされ複数メソッドを持つことができますその場合、プロバイダ複数コネクション ポイントを持つことになり、ConnectionProviderAttribute 要素の各インスタンスは、プロバイダコネクション ポイント区別できるようにするために、関連付けられているコネクション ポイントに対して一意ID 値を指定する必要があります


オーバーロードの一覧オーバーロードの一覧
参照参照

関連項目

ConnectionProviderAttribute クラス
ConnectionProviderAttribute メンバ
System.Web.UI.WebControls.WebParts 名前空間
DisplayName



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS