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

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

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

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

表示名およびコンシューマ接続ポイント使用する特定の種類コネクション ポイント オブジェクト指定して、ConnectionConsumerAttribute クラス新しインスタンス初期化します。

名前空間: 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 ConnectionConsumerAttribute(displayName,
 connectionPointType)
public ConnectionConsumerAttribute (
    string displayName,
    Type connectionPointType
)
public:
ConnectionConsumerAttribute (
    String^ displayName, 
    Type^ connectionPointType
)
public ConnectionConsumerAttribute (
    String displayName, 
    Type connectionPointType
)
public function ConnectionConsumerAttribute
 (
    displayName : String, 
    connectionPointType : Type
)

パラメータ

displayName

ユーザー インターフェイス (UI) に表示するコンシューマ接続ポイント表示名含まれている文字列。

connectionPointType

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

例外例外
例外種類条件

ArgumentNullException

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

ArgumentException

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

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

ConnectionConsumerAttribute コンストラクタ (String)

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

コンシューマ接続ポイント表示名指定して、ConnectionConsumerAttribute クラス新しインスタンス初期化します。

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

例外例外
例外種類条件

ArgumentNullException

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

解説解説
使用例使用例

ConnectionConsumerAttribute クラス使用するコード例次に示します。ここでは、コンシューマ コントロールコールバック メソッドConnectionConsumerAttribute メタデータ要素宣言する方法示してます。コンストラクタの最も簡単なオーバーロード使用しdisplayName パラメータ値だけを渡します。このコード例実行必要なコード全体については、ConnectionConsumerAttribute クラス概要参照してください

<ConnectionConsumer("Row")> _
Public Sub SetConnectionInterface(ByVal
 provider As IWebPartRow)
    _provider = provider

End Sub 'SetConnectionInterface
[ConnectionConsumer("Row")]
public void SetConnectionInterface(IWebPartRow
 provider) 
{
    _provider = provider;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConnectionConsumerAttribute クラス
ConnectionConsumerAttribute メンバ
System.Web.UI.WebControls.WebParts 名前空間
DisplayName

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

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

表示名ID、およびコンシューマ接続ポイント使用する特定の種類コネクション ポイント オブジェクト指定して、ConnectionConsumerAttribute クラス新しインスタンス初期化します。

名前空間: 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 ConnectionConsumerAttribute(displayName,
 id, connectionPointType)
public ConnectionConsumerAttribute (
    string displayName,
    string id,
    Type connectionPointType
)
public:
ConnectionConsumerAttribute (
    String^ displayName, 
    String^ id, 
    Type^ connectionPointType
)
public ConnectionConsumerAttribute (
    String displayName, 
    String id, 
    Type connectionPointType
)
public function ConnectionConsumerAttribute
 (
    displayName : String, 
    id : String, 
    connectionPointType : Type
)

パラメータ

displayName

ユーザー インターフェイス (UI) に表示するコンシューマ接続ポイント表示名含まれている文字列。

id

コンシューマ接続ポイント割り当てられている一意文字列値の ID

connectionPointType

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

例外例外
例外種類条件

ArgumentNullException

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

ArgumentException

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

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

ConnectionConsumerAttribute コンストラクタ

ConnectionConsumerAttribute クラス新しインスタンス初期化しコネクション ポイント表示名使用する値を指定してオプションコネクション ポイントID またはコネクション ポイント種類 (またはその両方) に使用する値を指定します

コンシューマ コントロールは、ConnectionConsumerAttribute メタデータ要素マークされ複数メソッドを持つことができます。この場合コンシューマ複数コネクション ポイントを持つため、コンシューマコネクション ポイント識別できるように、ConnectionConsumerAttribute 要素それぞれのインスタンス関連するコネクション ポイントに対して一意ID指定する必要があります


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

関連項目

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

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

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

コンシューマ接続ポイント表示名ID指定して、ConnectionConsumerAttribute クラス新しインスタンス初期化します。

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

例外例外
例外種類条件

ArgumentNullException

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

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



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2024 GRAS Group, Inc.RSS