WebPartConnectionsEventArgsとは? わかりやすく解説

WebPartConnectionsEventArgs クラス

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

WebPartManager コントロールの WebPartsConnected イベントおよび WebPartsDisconnected イベントイベント データ提供します

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

Public Class WebPartConnectionsEventArgs
    Inherits EventArgs
Dim instance As WebPartConnectionsEventArgs
public class WebPartConnectionsEventArgs :
 EventArgs
public ref class WebPartConnectionsEventArgs
 : public EventArgs
public class WebPartConnectionsEventArgs extends
 EventArgs
public class WebPartConnectionsEventArgs extends
 EventArgs
解説解説

Web パーツ コントロール セット機能使用して2 つWebPart または他のサーバー コントロールの間の接続作成し1 つコントロールプロバイダとして機能させ、もう 1 つコントロールデータコンシューマとして機能させることができます接続形成するには、2 つコントロールが WebPartZoneBase クラスから継承するゾーン配置され (WebPartZone コントロールなど)、共通のインターフェイス通じてデータ共有できるように正しく設計されている必要がありますWeb パーツ接続詳細については、「WebPartConnection」および「Web パーツ接続概要」を参照してください

WebPartConnectionsEventArgs クラスは、イベント処理する WebPartConnectionsEventHandler デリゲート使用するメソッドイベント データ渡しますイベント発生させ、WebPartConnectionsEventArgs クラス使用してイベント データ提供するこのような接続関連メソッド2 つあります。これらはいずれも、WebPartManager コントロールメンバです。OnWebPartsConnected メソッド2 つサーバー コントロール正常に接続され後で WebPartsConnected イベント発生させ、OnWebPartsDisconnected メソッド2 つサーバー コントロール接続切断され後で WebPartsDisconnected イベント発生させます

開発者は、WebPartsConnected イベントWebPartsDisconnected イベントカスタム イベント ハンドラ作成でき、それらのメソッド内で、接続詳細にアクセスするための WebPartConnectionsEventArgs クラス使用できます。たとえば、<asp:webpartmanager> 要素OnWebPartsConnected 属性宣言しイベント処理するカスタム メソッド名にそれを割り当てることができますカスタム ハンドラ メソッドでは、パラメータとしてメソッド渡される WebPartConnectionsEventArgs オブジェクト使用して接続詳細にアクセスできます

WebPartConnectionsEventArgs クラスには、コンストラクタ2 つオーバーロードあります。System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs(WebPart,ProviderConnectionPoint,WebPart,ConsumerConnectionPoint) コンストラクタ既定で、クラスプロパティ値を初期化します。System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs(WebPart,ProviderConnectionPoint,WebPart,ConsumerConnectionPoint,WebPartConnection) コンストラクタ既定コンストラクタ呼び出しConnection プロパティ初期化行います

WebPartConnectionsEventArgs クラスはいくつかのプロパティがあり、それらはすべて、Web パーツ接続不可欠な要素参照します。Connection プロパティは、接続全体を表す、関連付けられた WebPartConnection オブジェクト参照します。Provider プロパティ接続プロバイダとして機能する WebPart またはその他のコントロール参照しConsumer プロパティコンシューマとして機能する WebPart またはサーバー コントロール参照します。ProviderConnectionPoint プロパティ接続の ProviderConnectionPoint オブジェクト参照し、ConsumerConnectionPoint プロパティは ConsumerConnectionPoint オブジェクト参照します。

.NET Framework のセキュリティ.NET Frameworkセキュリティ
継承階層継承階層
System.Object
   System.EventArgs
    System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebPartConnectionsEventArgs メンバ
System.Web.UI.WebControls.WebParts 名前空間
WebPartConnectionsEventHandler
WebPartsConnected
WebPartsDisconnected
OnWebPartsConnected
OnWebPartsDisconnected
その他の技術情報
ASP.NET Web パーツ ページ
Web パーツ接続概要

WebPartConnectionsEventArgs コンストラクタ (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint)

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

WebPartConnection オブジェクトを必要とせずに、WebPartConnectionsEventArgs クラス新しインスタンス初期化します。

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

Public Sub New ( _
    provider As WebPart, _
    providerConnectionPoint As ProviderConnectionPoint, _
    consumer As WebPart, _
    consumerConnectionPoint As ConsumerConnectionPoint _
)
Dim provider As WebPart
Dim providerConnectionPoint As ProviderConnectionPoint
Dim consumer As WebPart
Dim consumerConnectionPoint As ConsumerConnectionPoint

Dim instance As New WebPartConnectionsEventArgs(provider,
 providerConnectionPoint, consumer, consumerConnectionPoint)
public WebPartConnectionsEventArgs (
    WebPart provider,
    ProviderConnectionPoint providerConnectionPoint,
    WebPart consumer,
    ConsumerConnectionPoint consumerConnectionPoint
)
public:
WebPartConnectionsEventArgs (
    WebPart^ provider, 
    ProviderConnectionPoint^ providerConnectionPoint, 
    WebPart^ consumer, 
    ConsumerConnectionPoint^ consumerConnectionPoint
)
public WebPartConnectionsEventArgs (
    WebPart provider, 
    ProviderConnectionPoint providerConnectionPoint, 
    WebPart consumer, 
    ConsumerConnectionPoint consumerConnectionPoint
)
public function WebPartConnectionsEventArgs
 (
    provider : WebPart, 
    providerConnectionPoint : ProviderConnectionPoint, 
    consumer : WebPart, 
    consumerConnectionPoint : ConsumerConnectionPoint
)

パラメータ

provider

プロバイダとして機能するコントロール

providerConnectionPoint

プロバイダ コネクション ポイント

consumer

コンシューマとして機能するコントロール

consumerConnectionPoint

コンシューマ接続ポイント

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

WebPartConnectionsEventArgs コンストラクタ (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartConnection)

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

WebPartConnection オブジェクト指定してクラス新しインスタンス初期化します。

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

Public Sub New ( _
    provider As WebPart, _
    providerConnectionPoint As ProviderConnectionPoint, _
    consumer As WebPart, _
    consumerConnectionPoint As ConsumerConnectionPoint, _
    connection As WebPartConnection _
)
Dim provider As WebPart
Dim providerConnectionPoint As ProviderConnectionPoint
Dim consumer As WebPart
Dim consumerConnectionPoint As ConsumerConnectionPoint
Dim connection As WebPartConnection

Dim instance As New WebPartConnectionsEventArgs(provider,
 providerConnectionPoint, consumer, consumerConnectionPoint, connection)
public WebPartConnectionsEventArgs (
    WebPart provider,
    ProviderConnectionPoint providerConnectionPoint,
    WebPart consumer,
    ConsumerConnectionPoint consumerConnectionPoint,
    WebPartConnection connection
)
public:
WebPartConnectionsEventArgs (
    WebPart^ provider, 
    ProviderConnectionPoint^ providerConnectionPoint, 
    WebPart^ consumer, 
    ConsumerConnectionPoint^ consumerConnectionPoint, 
    WebPartConnection^ connection
)
public WebPartConnectionsEventArgs (
    WebPart provider, 
    ProviderConnectionPoint providerConnectionPoint, 
    WebPart consumer, 
    ConsumerConnectionPoint consumerConnectionPoint, 
    WebPartConnection connection
)
public function WebPartConnectionsEventArgs
 (
    provider : WebPart, 
    providerConnectionPoint : ProviderConnectionPoint, 
    consumer : WebPart, 
    consumerConnectionPoint : ConsumerConnectionPoint, 
    connection : WebPartConnection
)

パラメータ

provider

プロバイダとして機能する WebPart またはサーバー コントロール

providerConnectionPoint

接続の ProviderConnectionPoint。

consumer

コンシューマとして機能する WebPart またはサーバー コントロール

consumerConnectionPoint

接続の ConsumerConnectionPoint。

connection

WebPartConnection オブジェクト

解説解説

WebPartConnectionsEventArgs コンストラクタのこのバージョンは、WebPartConnection オブジェクト使用できる場合使用されます。

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

WebPartConnectionsEventArgs コンストラクタ

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

名前 説明
WebPartConnectionsEventArgs (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint) WebPartConnection オブジェクトを必要とせずに、WebPartConnectionsEventArgs クラス新しインスタンス初期化します。
WebPartConnectionsEventArgs (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartConnection) WebPartConnection オブジェクト指定してクラス新しインスタンス初期化します。
参照参照

関連項目

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

WebPartConnectionsEventArgs プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

WebPartConnectionsEventArgs クラス
System.Web.UI.WebControls.WebParts 名前空間
WebPartConnectionsEventHandler
WebPartsConnected
WebPartsDisconnected
OnWebPartsConnected
OnWebPartsDisconnected

その他の技術情報

ASP.NET Web パーツ ページ
Web パーツ接続概要

WebPartConnectionsEventArgs メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WebPartConnectionsEventArgs クラス
System.Web.UI.WebControls.WebParts 名前空間
WebPartConnectionsEventHandler
WebPartsConnected
WebPartsDisconnected
OnWebPartsConnected
OnWebPartsDisconnected

その他の技術情報

ASP.NET Web パーツ ページ
Web パーツ接続概要

WebPartConnectionsEventArgs メンバ

WebPartManager コントロールの WebPartsConnected イベントおよび WebPartsDisconnected イベントイベント データ提供します

WebPartConnectionsEventArgs データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド WebPartConnectionsEventArgs オーバーロードされます。 WebPartConnectionsEventArgs クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WebPartConnectionsEventArgs クラス
System.Web.UI.WebControls.WebParts 名前空間
WebPartConnectionsEventHandler
WebPartsConnected
WebPartsDisconnected
OnWebPartsConnected
OnWebPartsDisconnected

その他の技術情報

ASP.NET Web パーツ ページ
Web パーツ接続概要



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

辞書ショートカット

すべての辞書の索引

「WebPartConnectionsEventArgs」の関連用語

WebPartConnectionsEventArgsのお隣キーワード
検索ランキング

   

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



WebPartConnectionsEventArgsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS