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 对象。

注解

此版本的 WebPartConnectionsEventArgs 构造函数在对象可用时 WebPartConnection 使用。

适用于