共用方式為


WebPartConnectionsEventArgs 建構函式

定義

初始化 WebPartConnectionsEventArgs 類別的新執行個體。

多載

WebPartConnectionsEventArgs(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint)

初始化 WebPartConnectionsEventArgs 類別的新執行個體,而不需要 WebPartConnection 物件。

WebPartConnectionsEventArgs(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartConnection)

使用指定的 WebPartConnection 物件,初始化類別的新執行個體。

WebPartConnectionsEventArgs(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint)

初始化 WebPartConnectionsEventArgs 類別的新執行個體,而不需要 WebPartConnection 物件。

public:
 WebPartConnectionsEventArgs(System::Web::UI::WebControls::WebParts::WebPart ^ provider, System::Web::UI::WebControls::WebParts::ProviderConnectionPoint ^ providerConnectionPoint, System::Web::UI::WebControls::WebParts::WebPart ^ consumer, System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ consumerConnectionPoint);
public WebPartConnectionsEventArgs (System.Web.UI.WebControls.WebParts.WebPart provider, System.Web.UI.WebControls.WebParts.ProviderConnectionPoint providerConnectionPoint, System.Web.UI.WebControls.WebParts.WebPart consumer, System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint consumerConnectionPoint);
new System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs : System.Web.UI.WebControls.WebParts.WebPart * System.Web.UI.WebControls.WebParts.ProviderConnectionPoint * System.Web.UI.WebControls.WebParts.WebPart * System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint -> System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs
Public Sub New (provider As WebPart, providerConnectionPoint As ProviderConnectionPoint, consumer As WebPart, consumerConnectionPoint As ConsumerConnectionPoint)

參數

provider
WebPart

做為提供者的控制項。

providerConnectionPoint
ProviderConnectionPoint

提供者連接點。

consumer
WebPart

做為消費者的控制項。

consumerConnectionPoint
ConsumerConnectionPoint

消費者連接點。

備註

這是無參數建構函式。 它不需要 WebPartConnection 物件。 建構函式會將每個連接相關參數物件指派給對應的屬性,以初始化其屬性的值。

適用於

WebPartConnectionsEventArgs(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartConnection)

使用指定的 WebPartConnection 物件,初始化類別的新執行個體。

public:
 WebPartConnectionsEventArgs(System::Web::UI::WebControls::WebParts::WebPart ^ provider, System::Web::UI::WebControls::WebParts::ProviderConnectionPoint ^ providerConnectionPoint, System::Web::UI::WebControls::WebParts::WebPart ^ consumer, System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ consumerConnectionPoint, System::Web::UI::WebControls::WebParts::WebPartConnection ^ connection);
public WebPartConnectionsEventArgs (System.Web.UI.WebControls.WebParts.WebPart provider, System.Web.UI.WebControls.WebParts.ProviderConnectionPoint providerConnectionPoint, System.Web.UI.WebControls.WebParts.WebPart consumer, System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint consumerConnectionPoint, System.Web.UI.WebControls.WebParts.WebPartConnection connection);
new System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs : System.Web.UI.WebControls.WebParts.WebPart * System.Web.UI.WebControls.WebParts.ProviderConnectionPoint * System.Web.UI.WebControls.WebParts.WebPart * System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint * System.Web.UI.WebControls.WebParts.WebPartConnection -> System.Web.UI.WebControls.WebParts.WebPartConnectionsEventArgs
Public Sub New (provider As WebPart, providerConnectionPoint As ProviderConnectionPoint, consumer As WebPart, consumerConnectionPoint As ConsumerConnectionPoint, connection As WebPartConnection)

參數

provider
WebPart

做為提供者的 WebPart 或伺服器控制項。

providerConnectionPoint
ProviderConnectionPoint

連接的 ProviderConnectionPoint

consumer
WebPart

做為消費者的 WebPart 或伺服器控制項。

consumerConnectionPoint
ConsumerConnectionPoint

連接的 ConsumerConnectionPoint

connection
WebPartConnection

WebPartConnection 物件。

備註

當物件可用時 WebPartConnectionWebPartConnectionsEventArgs 會使用此版本的建構函式。

適用於